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
|
case "$1" in
|
||||||
-f|--foreground)
|
-f|--foreground)
|
||||||
MODE="FOREGROUND"
|
MODE="FOREGROUND"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-b|--background)
|
-b|--background)
|
||||||
MODE="BACKGROUND"
|
MODE="BACKGROUND"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--no-color)
|
--no-color)
|
||||||
|
echo "INFO: Running with plain console."
|
||||||
GRADLE_COLOR="--console=plain"
|
GRADLE_COLOR="--console=plain"
|
||||||
shift
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-h|--help)
|
-h|--help)
|
||||||
|
|
@ -124,7 +122,7 @@ elif [[ ${MODE} == "BACKGROUND" ]]; then
|
||||||
# Kill current session
|
# Kill current session
|
||||||
screen -S hal -X kill
|
screen -S hal -X kill
|
||||||
# Start new session
|
# 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 "-------------------------"
|
echo "-------------------------"
|
||||||
screen -list
|
screen -list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue