From 7ed4e610ab738fe02450022960957f219cc7b72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 26 Mar 2022 20:24:36 +0100 Subject: [PATCH] changed start script --- start.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 92e262c..d528dfc 100644 --- a/start.sh +++ b/start.sh @@ -1,6 +1,4 @@ -#!bin/bash +#!bin/bash -e SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -screen -m -d rackled -sleep 5 -screen -S rackled -X stuff "python3 '$SCRIPT_DIR'/main.py\n" \ No newline at end of file +screen -m -d -S rackled bash -c "cd $SCRIPT_DIR && python3 ./main.py" \ No newline at end of file