projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add cli checks to Php code
[roojs1]
/
buildSDK
/
less-bootstrap-compiler.php
diff --git
a/buildSDK/less-bootstrap-compiler.php
b/buildSDK/less-bootstrap-compiler.php
index
be9fce7
..
9f48504
100644
(file)
--- a/
buildSDK/less-bootstrap-compiler.php
+++ b/
buildSDK/less-bootstrap-compiler.php
@@
-1,5
+1,9
@@
<?php
+if (php_sapi_name() != 'cli') {
+ die("CLI ONLY");
+}
+
$cwd = getcwd();
$cc = explode('/', $cwd);