Merge branch 'fix-setup-path-problem' into 'master'
Fix path problem in run script when executed elsewhere See merge request icaotix/linux-tools!15
This commit is contained in:
commit
30a7f0665f
6
start.sh
6
start.sh
@ -1,13 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
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 update -y && apt upgrade -y
|
||||||
apt install python3.7 python3-pip -y
|
apt install python3.7 python3-pip -y
|
||||||
pip3 install setuptools wheel regex
|
pip3 install setuptools wheel regex
|
||||||
|
cd $DIR
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
python3 main.py helloworld run
|
python3 main.py helloworld run
|
||||||
else
|
else
|
||||||
|
cd $DIR
|
||||||
python3 main.py "$@"
|
python3 main.py "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user