add cli checks to Php code
[roojs1] / buildSDK / pre-commit
index a47449e..abbaa07 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/php
 <?php
-
+if (php_sapi_name() != 'cli') {
+    die("CLI ONLY");
+}
 // install : ln -s buildSDK/pre-commit .git/hooks/
 
 // the recomendation is to check if the current commit is same as the one on any of the files/directories that need monitoring.