From: Alan Knowles Date: Mon, 21 Jan 2019 03:50:43 +0000 (+0800) Subject: try using local path for buildSDK in pre-commit X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=a2b2df9f863b7c68eca7ad8170c29b90bac68f50 try using local path for buildSDK in pre-commit --- diff --git a/buildSDK/pre-commit b/buildSDK/pre-commit index 6e8a240ad4..3d9d1c99d5 100755 --- a/buildSDK/pre-commit +++ b/buildSDK/pre-commit @@ -65,7 +65,7 @@ function changed_files() function trigger_action_file($fn, $filename) { - $ret = explode("\n",file_get_contents("buildSDK/" . $filename)); + $ret = explode("\n",file_get_contents(__DIR__ . "/" . $filename)); $ret[] = "buildSDK/".$filename; return trigger_action($fn, $ret);