Fixed console output issue
This commit is contained in:
parent
f3cbda43d1
commit
e4707c2493
1 changed files with 2 additions and 4 deletions
6
run.sh
6
run.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue