mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 00:50:51 +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
|
fi
|
||||||
|
|
||||||
if [[ -z $publicBackup && -z $otherBackup ]] ; then
|
if [[ -z $publicBackup && -z $otherBackup ]] ; then
|
||||||
echo "Entrei"
|
echo "Minecraft is not running. Exiting..."
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BACKUPDIR="/home/bruno/Backups/zBackup-Minecraft/backups"
|
BACKUPDIR="/home/bruno/Backups/zBackup-Minecraft/backups"
|
||||||
|
Loading…
Reference in New Issue
Block a user