summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-05 15:59:57 -0500
committersullrich <sullrich@pfsense.org>2009-12-05 15:59:57 -0500
commitcb8c3cfcca44ea45cdcac6861e4d589d73790c30 (patch)
treee67889bb992246c79dbe3318e39d5e2d8fe9d81e /etc/phpshellsessions
parent51a2e892217b4a84db8b97771fd09ef762813c74 (diff)
downloadpfsense-cb8c3cfcca44ea45cdcac6861e4d589d73790c30.zip
pfsense-cb8c3cfcca44ea45cdcac6861e4d589d73790c30.tar.gz
Hide debugging item
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync4
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);
}
}
OpenPOWER on IntegriCloud