]> git.lizzy.rs Git - elidragon_v2.git/commitdiff
Add missing -e arguments to common script
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 20 Feb 2021 10:40:52 +0000 (11:40 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 20 Feb 2021 10:40:52 +0000 (11:40 +0100)
scripts/common.sh

index 0b4887aacfd0e7f9b941d28121e6c350ae3936c5..2f65662991b647f98f4fa146144373470cda27a5 100644 (file)
@@ -25,7 +25,7 @@ function loop_worlds {
 
 function assert_running {
        if ! is_running $1; then
-               echo "\e[31mWorld $1 is not running\e[0m"
+               echo -e "\e[31mWorld $1 is not running\e[0m"
                if [ -z "$2" ]; then
                        exit 1
                else
@@ -60,7 +60,7 @@ function start_world {
                        rm $LOCK
                "
 
-               echo "\e[32mDone\e[0m"
+               echo -e "\e[32mDone\e[0m"
        fi
 }
 
@@ -70,7 +70,7 @@ function stop_world {
                kill_world $1
                rm `world_lock $1`
 
-               echo "\e[32mDone\e[0m"
+               echo -e "\e[32mDone\e[0m"
        fi
 }
 
@@ -79,7 +79,7 @@ function restart_world {
        if assert_running $1 "true"; then
                kill_world $1
 
-               echo "\e[32mDone\e[0m"
+               echo -e "\e[32mDone\e[0m"
        fi
 }