]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/update.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 23 Apr 2017 15:44:11 +0000 (16:44 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 23 Apr 2017 15:44:11 +0000 (16:44 +0100)
bin/nb-install
www/dbq/update.sh

index 6adb66425b8f9b1fb9bd0e1ea631aeb7f9d53ceb..225b33d7dbb229358925405924d00f4f81e06b7e 100755 (executable)
@@ -112,7 +112,6 @@ if [ ! -e .git/hooks/pre-push -a -w .git/hooks ]; then
 #!/bin/sh
 echo Git hooks pre-push $* 1>&2
 $([ -e www/dbq/update.sh ] && echo www/dbq/update.sh)
-true
 EOF
   chmod 755 .git/hooks/pre-push
   chown "$NB_USER" .git/hooks/pre-push
index 0f814d8f54cfc578b5da3c5cb682c6434c9d25a3..9bb5d14d2b286a82ba3f122507315cba38d9e9e8 100755 (executable)
@@ -23,3 +23,5 @@ for f in $(find html -type f \( -name '*.css' -o -name '*.js' \) -a -not -name '
   echo "$f"
   eval minify --$ext < "$f" > "$min.bak" && mv "$min.bak" "$min"
 done
+
+[ "$?" = "0" ] || echo Failed