From 273f92ea352f24ea6e1eaffc37b13c0f98694a4a Mon Sep 17 00:00:00 2001 From: DarthSim Date: Tue, 20 Aug 2019 20:26:55 +0600 Subject: [PATCH] Fix lefthook scripts --- .lefthook/pre-commit/lint | 2 +- .lefthook/pre-push/test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.lefthook/pre-commit/lint b/.lefthook/pre-commit/lint index 8efd0cdc..0b20ba82 100755 --- a/.lefthook/pre-commit/lint +++ b/.lefthook/pre-commit/lint @@ -1,6 +1,6 @@ #!/bin/sh -if ! [ -x "$(which brew)" ]; then +if [ -x "$(which brew)" ]; then export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig" fi diff --git a/.lefthook/pre-push/test b/.lefthook/pre-push/test index d350cef4..f91b8ce9 100755 --- a/.lefthook/pre-push/test +++ b/.lefthook/pre-push/test @@ -1,6 +1,6 @@ #!/bin/sh -if ! [ -x "$(which brew)" ]; then +if [ -x "$(which brew)" ]; then export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig" fi