mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-25 01:31:03 +01:00
Optimized exits
This commit is contained in:
parent
7832c85de7
commit
5786e21c11
@ -38,9 +38,8 @@ if [ -f "$backup_sql" ]; then
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: Failed to recover mysql dump"
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
echo "A database backup exists, but a parameter is missing. Files will be recovered instead."
|
||||
fi
|
||||
@ -52,6 +51,7 @@ if [ -d "$backup_files" ]; then
|
||||
echo "ERROR: Failed to recover files"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
else
|
||||
echo "ERROR: $backup_files doesn't exist"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user