diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-05 15:59:57 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-05 15:59:57 -0500 |
commit | cb8c3cfcca44ea45cdcac6861e4d589d73790c30 (patch) | |
tree | e67889bb992246c79dbe3318e39d5e2d8fe9d81e /etc/phpshellsessions | |
parent | 51a2e892217b4a84db8b97771fd09ef762813c74 (diff) | |
download | pfsense-cb8c3cfcca44ea45cdcac6861e4d589d73790c30.zip pfsense-cb8c3cfcca44ea45cdcac6861e4d589d73790c30.tar.gz |
Hide debugging item
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r-- | etc/phpshellsessions/gitsync | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 18268c4..1458625 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -246,8 +246,10 @@ function isUrl($url = "") { } function run_cmds($cmds) { + global $debug; foreach($cmds as $cmd) { - echo "Running $cmd"; + if($debug) + echo "Running $cmd"; exec($cmd); } } |