summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions/gitsync
diff options
context:
space:
mode:
Diffstat (limited to 'etc/phpshellsessions/gitsync')
-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