mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-23 21:20:50 +00:00
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:
parent
d1ec197dc4
commit
b8495afbba
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user