From 8aa40aa6822ca1f6664d53d6de1e44c23b9114af Mon Sep 17 00:00:00 2001 From: Stefan Bratic Date: Wed, 19 Jun 2019 11:05:34 +0000 Subject: [PATCH] fixed status check --- entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry.sh b/entry.sh index 42ae1d8..cfaa7b3 100755 --- a/entry.sh +++ b/entry.sh @@ -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