silence gradle on run

This commit is contained in:
Ziver Koc 2023-09-28 21:59:58 +02:00
parent dc4f54be4b
commit a52de9ccb7

4
run.sh
View file

@ -117,14 +117,14 @@ if [[ ${MODE} == "FOREGROUND" ]]; then
while [[ ${EXIT_CODE} -eq 200 ]]; do while [[ ${EXIT_CODE} -eq 200 ]]; do
# Restart as long as we have a exit code of 200, this allows the application to restart itself # Restart as long as we have a exit code of 200, this allows the application to restart itself
#startHal #startHal
./gradlew ${GRADLE_COLOR} run ./gradlew ${GRADLE_COLOR} --warning-mode none run
EXIT_CODE=$? EXIT_CODE=$?
done done
elif [[ ${MODE} == "BACKGROUND" ]]; then 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