Selaa lähdekoodia

Build scripts: Fix formatting

Daniel Rudolf 9 vuotta sitten
vanhempi
commit
8c24e32f10
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      _build/generate-badge.sh
  2. 1 1
      _build/github-deploy.sh
  3. 1 1
      _build/github-setup.sh

+ 2 - 2
_build/generate-badge.sh

@@ -37,8 +37,8 @@ wget -O "$TMP_BADGE" \
 
 # validate badge
 if [ ! -f "$TMP_BADGE" ]; then
-    echo "Unable to generate badge; aborting...\n" >&2
-    exit 1
+    printf 'Unable to generate badge; skipping...\n\n'
+    exit 0
 fi
 
 # MIME type image/svg+xml isn't supported at the moment

+ 1 - 1
_build/github-deploy.sh

@@ -56,7 +56,7 @@ if [ -n "$CHECK_REPO_SLUG" ] && [ -n "$CHECK_REMOTE_REF" ] && [ -n "$CHECK_LOCAL
 
     # compare source reference against the latest commit
     if [ "$CHECK_REMOTE_COMMIT" != "$CHECK_LOCAL_COMMIT" ]; then
-        echo "WARNING: latest local commit '$CHECK_LOCAL_COMMIT' doesn't match latest remote commit '$CHECK_REMOTE_COMMIT'" >&2
+        echo "Latest local commit '$CHECK_LOCAL_COMMIT' doesn't match latest remote commit '$CHECK_REMOTE_COMMIT'; aborting..." >&2
         exit 0
     fi
 

+ 1 - 1
_build/github-setup.sh

@@ -19,7 +19,7 @@ echo
 
 # check for git repo
 if ! git rev-parse --git-dir > /dev/null 2>&1; then
-    printf 'Not a git repo; aborting...\n\n' >&2
+    echo "Not a git repo; aborting..." >&2
     exit 1
 fi