run.sh: Adapt for MacOS

This commit is contained in:
remittor
2025-04-17 10:59:24 +03:00
parent e46d952586
commit a321f269f6
+2 -2
View File
@@ -32,12 +32,12 @@ if [ ! -e "$VIRTUAL_ENV" ] || ! type deactivate &> /dev/null ; then
exit 1
fi
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l`
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d' '`
if [ "$SSH2_PKG" = "0" ]; then
# install
python3 -m pip install -r requirements.txt
# check
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l`
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d' '`
if [ "$SSH2_PKG" = "0" ]; then
echo "ERROR: XMiR: python3 package 'ssh2-python' not installed!"
deactivate