linux-tools/lnxtools.sh
2020-03-21 02:07:42 +01:00

18 lines
441 B
Bash
Executable File

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