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 )
if ! dpkg -l | grep python3-dev 2>&1 >/dev/null
then then
echo "You need to install python3-dev for installing the other dependencies." echo "You need to install python3-dev for installing the other dependencies."
exit 1 exit 1
fi fi
;;
esac
fi fi
python3 -m venv --upgrade-deps venv python3 -m venv --upgrade-deps venv