From cb8c3cfcca44ea45cdcac6861e4d589d73790c30 Mon Sep 17 00:00:00 2001 From: sullrich Date: Sat, 5 Dec 2009 15:59:57 -0500 Subject: Hide debugging item --- etc/phpshellsessions/gitsync | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc') 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); } } -- cgit v1.1