Fix warnings in lnxtools.sh

change apt to apt-get
This commit is contained in:
Marcel Schwarz 2020-03-21 02:07:42 +01:00
parent e5f90f6c0c
commit 9209f0bf3f

View File

@ -5,13 +5,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ "$1" == "prepare" ] if [ "$1" == "prepare" ]
then then
echo "Preparing your system for the first run" echo "Preparing your system for the first run"
apt update -y && apt upgrade -y apt-get update -y && apt-get upgrade -y
apt install python3.7 python3-pip -y apt-get install python3.7 python3-pip -y
pip3 install setuptools wheel regex pip3 install setuptools wheel regex
cd $DIR cd "$DIR" || exit
pip3 install -r requirements.txt pip3 install -r requirements.txt
python3 main.py helloworld python3 main.py helloworld
else else
cd $DIR cd "$DIR" || exit
python3 main.py "$@" python3 main.py "$@"
fi fi