mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-09-29 04:30:28 +00:00
fixed status check
This commit is contained in:
@@ -21,7 +21,7 @@ if [ $status != 0 ]; then
|
|||||||
echo "Restic repository '${RESTIC_REPOSITORY}' does not exists. Running restic init."
|
echo "Restic repository '${RESTIC_REPOSITORY}' does not exists. Running restic init."
|
||||||
restic init | true
|
restic init | true
|
||||||
|
|
||||||
if [ $? == 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Failed to init the repository: '${RESTIC_REPOSITORY}'"
|
echo "Failed to init the repository: '${RESTIC_REPOSITORY}'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user