mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 07:54:36 +00:00
cmdeploy: make it work without bash
Co-authored-by: link2xt <link2xt@testrun.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user