fix(MinecraftBackup): exiting with the correct status

It is expected to do not have a running instance so it should exit nicely.
This commit is contained in:
Bruno F. Fontes 2021-03-26 20:52:56 -03:00
parent d1ec197dc4
commit b8495afbba
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

@ -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"