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
if [[ $(lsb_release -is 2> /dev/null) == "Ubuntu" || $(lsb_release -is 2> /dev/null) == "Debian" ]]
then
if [ $(dpkg -l | grep python3-dev 2>&1 /dev/null) ]
then
echo "You need to install python3-dev for installing the other dependencies."
exit 1
fi
if command -v lsb_release 2>&1 >/dev/null; then
case "$(lsb_release -is)" in
Ubuntu | Debian )
if ! dpkg -l | grep python3-dev 2>&1 >/dev/null
then
echo "You need to install python3-dev for installing the other dependencies."
exit 1
fi
;;
esac
fi
python3 -m venv --upgrade-deps venv