fixed status check

This commit is contained in:
Stefan Bratic
2019-06-19 11:05:34 +00:00
committed by Tobias Kaupat
parent 4cdfc85445
commit 8aa40aa682

View File

@@ -21,7 +21,7 @@ if [ $status != 0 ]; then
echo "Restic repository '${RESTIC_REPOSITORY}' does not exists. Running restic init."
restic init | true
if [ $? == 0 ]; then
if [ $? != 0 ]; then
echo "Failed to init the repository: '${RESTIC_REPOSITORY}'"
exit 1
fi