Skip to content
Snippets Groups Projects
Commit 42b603aa authored by Dmitry Puzyrkov's avatar Dmitry Puzyrkov
Browse files

Merge branch 'tools' into 'main'

Tools

See merge request cellframe/pycfhelpers!14
parents 617175a7 00c443e4
No related merge requests found
[submodule "python-interfaces"]
path = python-interfaces
url = git@gitlab.demlabs.net:private/cellframe-plugins/python-interfaces.git
Subproject commit b31afd9b878f40fd09994d803fab8d354c91c203
#!/bin/sh
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key local_path; do
url_key=$(echo $path_key | sed 's/\.path/.url/')
url=$(git config -f .gitmodules --get "$url_key")
git submodule add $url $local_path
done
#!/bin/sh -e
current_directory=$(pwd)
directory_name=$(basename "$current_directory")
path_to_modules="/opt/cellframe-node/python/lib/python3.10/site-packages/$directory_name"
if [ ! -d "$path_to_modules" ]; then
sudo mkdir "$path_to_modules"
echo "Directory \"$path_to_modules\" not exist."
else
echo "Directory \"$path_to_modules\" already exist."
fi
command_to_execute="sudo mount ./ $path_to_modules -obind"
if output=$($command_to_execute 2>&1); then
echo "Directory \"$current_directory\" successfully mounted."
else
exit_code=$?
echo "An error occurred while executing the command. Return code: $exit_code"
echo "$output"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment