Fixed console output issue

This commit is contained in:
Ziver Koc 2024-07-16 23:44:46 +02:00
parent f3cbda43d1
commit e4707c2493

6
run.sh
View file

@ -25,17 +25,15 @@ until [[ $# -eq 0 ]]; do
case "$1" in
-f|--foreground)
MODE="FOREGROUND"
shift
;;
-b|--background)
MODE="BACKGROUND"
shift
;;
--no-color)
echo "INFO: Running with plain console."
GRADLE_COLOR="--console=plain"
shift
;;
-h|--help)
@ -124,7 +122,7 @@ elif [[ ${MODE} == "BACKGROUND" ]]; then
# Kill current session
screen -S hal -X kill
# Start new session
screen -S hal -L -d -m "$(dirname "$0")/run.sh" --foreground --no-color
screen -S hal -L -d -m $(dirname "$0")/run.sh --foreground --no-color
echo "-------------------------"
screen -list