mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 22:57:55 +03:00
run.sh: Fix tr arguments
This commit is contained in:
@@ -32,12 +32,12 @@ if [ ! -e "$VIRTUAL_ENV" ] || ! type deactivate &> /dev/null ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d' '`
|
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d ' '`
|
||||||
if [ "$SSH2_PKG" = "0" ]; then
|
if [ "$SSH2_PKG" = "0" ]; then
|
||||||
# install
|
# install
|
||||||
python3 -m pip install -r requirements.txt
|
python3 -m pip install -r requirements.txt
|
||||||
# check
|
# check
|
||||||
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d' '`
|
SSH2_PKG=`find ./venv -type d -wholename '*/site-packages/ssh2_python*' | wc -l | tr -d ' '`
|
||||||
if [ "$SSH2_PKG" = "0" ]; then
|
if [ "$SSH2_PKG" = "0" ]; then
|
||||||
echo "ERROR: XMiR: python3 package 'ssh2-python' not installed!"
|
echo "ERROR: XMiR: python3 package 'ssh2-python' not installed!"
|
||||||
deactivate
|
deactivate
|
||||||
|
|||||||
Reference in New Issue
Block a user