Fix path problem in run script when executed elsewhere
This commit is contained in:
parent
4c81e9d66b
commit
8a074ae91c
4
start.sh
4
start.sh
@ -1,13 +1,17 @@
|
||||
#!/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 run
|
||||
else
|
||||
cd $DIR
|
||||
python3 main.py "$@"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user