linux-tools/lnxtools.sh

18 lines
409 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 update -y && apt upgrade -y
apt install python3.7 python3-pip -y
pip3 install setuptools wheel regex
cd $DIR
pip3 install -r requirements.txt
python3 main.py helloworld
else
cd $DIR
python3 main.py "$@"
fi