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