Fix git status check when upgrading the production
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Wed, 15 Apr 2020 20:27:08 +0000 (22:27 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Wed, 15 Apr 2020 20:27:08 +0000 (22:27 +0200)
bin/upgrade-prod.sh

index c52de1bfa1fbfffcfaeb4bc9a0bcfb1df01fb8c4..c4f340968eeaee40b18b9e8aebb518b8ec5f0b47 100755 (executable)
@@ -35,7 +35,7 @@ if [ -f "$WORKING_DIRECTORY/games.backup.json" ]; then
     error "Your working copy has a 'games.backup.json' file. I give up."
 fi
 
-if [ -z "$(git status --porcelain)" ]; then
+if ! [ -z "$(git status --porcelain)" ]; then
     error "Your git repository is not clean. I am not doing anything."
 fi