cmdeploy: make it work without bash

Co-authored-by: link2xt <link2xt@testrun.org>
This commit is contained in:
missytake
2025-05-16 21:24:46 +02:00
parent ed93678c9d
commit 823bc90eb1

View File

@@ -1,13 +1,16 @@
#!/bin/bash #!/bin/sh
set -e set -e
if [[ $(lsb_release -is 2> /dev/null) == "Ubuntu" || $(lsb_release -is 2> /dev/null) == "Debian" ]] if command -v lsb_release 2>&1 >/dev/null; then
then case "$(lsb_release -is)" in
if [ $(dpkg -l | grep python3-dev 2>&1 /dev/null) ] Ubuntu | Debian )
then if ! dpkg -l | grep python3-dev 2>&1 >/dev/null
echo "You need to install python3-dev for installing the other dependencies." then
exit 1 echo "You need to install python3-dev for installing the other dependencies."
fi exit 1
fi
;;
esac
fi fi
python3 -m venv --upgrade-deps venv python3 -m venv --upgrade-deps venv