From b8495afbbafb8624c6c5c96762a5a8cb6f4da71f Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 26 Mar 2021 20:52:56 -0300 Subject: [PATCH] fix(MinecraftBackup): exiting with the correct status It is expected to do not have a running instance so it should exit nicely. --- Services/minecraft-hour.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/minecraft-hour.sh b/Services/minecraft-hour.sh index 044255e..4aba0be 100755 --- a/Services/minecraft-hour.sh +++ b/Services/minecraft-hour.sh @@ -6,8 +6,8 @@ if screen -list | grep -q "Minecraft"; then fi if [[ -z $publicBackup && -z $otherBackup ]] ; then - echo "Entrei" - exit 1 + echo "Minecraft is not running. Exiting..." + exit 0 fi BACKUPDIR="/home/bruno/Backups/zBackup-Minecraft/backups"