From 19c25a9542727cd233553d42ca6b02e6e0decfc2 Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Sun, 21 Jan 2024 16:24:31 +0100 Subject: [PATCH] add newlines after printf --- scripts/init.sh | 6 +++--- scripts/start.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index ebf0a8d30..7b7a75b44 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -1,11 +1,11 @@ #!/bin/bash if [[ ! "${PUID}" -eq 0 ]] && [[ ! "${PGID}" -eq 0 ]]; then - echo "Executing usermod..." + printf "\e[0;32m*****EXECUTING USERMOD*****\e[0m\n" usermod -o -u "${PUID}" steam groupmod -o -g "${PGID}" steam else - echo "Running as root is not supported, please fix your PUID and PGID!" + printf "\033[31mRunning as root is not supported, please fix your PUID and PGID!\n" exit 1 fi @@ -13,7 +13,7 @@ mkdir -p /palworld chown -R steam:steam /palworld if [ "${UPDATE_ON_BOOT}" = true ]; then - printf "\e[0;32m*****STARTING INSTALL/UPDATE*****\e[0m" + printf "\e[0;32m*****STARTING INSTALL/UPDATE*****\e[0m\n" su steam -c '/home/steam/steamcmd/steamcmd.sh +force_install_dir "/palworld" +login anonymous +app_update 2394010 validate +quit' fi diff --git a/scripts/start.sh b/scripts/start.sh index ecc6183b3..3748b5df3 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -34,6 +34,6 @@ cd /palworld || exit echo "${STARTCOMMAND}" -printf "\e[0;32m*****STARTING SERVER*****\e[0m" +printf "\e[0;32m*****STARTING SERVER*****\e[0m\n" su steam -c "${STARTCOMMAND}"