Browse Source

Fix lefthook scripts

DarthSim 5 years ago
parent
commit
273f92ea35
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .lefthook/pre-commit/lint
  2. 1 1
      .lefthook/pre-push/test

+ 1 - 1
.lefthook/pre-commit/lint

@@ -1,6 +1,6 @@
 #!/bin/sh
 #!/bin/sh
 
 
-if ! [ -x "$(which brew)" ]; then
+if [ -x "$(which brew)" ]; then
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
 fi
 fi
 
 

+ 1 - 1
.lefthook/pre-push/test

@@ -1,6 +1,6 @@
 #!/bin/sh
 #!/bin/sh
 
 
-if ! [ -x "$(which brew)" ]; then
+if [ -x "$(which brew)" ]; then
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig"
 fi
 fi