From 869538d53dc557a3bdea048027309b6fd162fc95 Mon Sep 17 00:00:00 2001 From: sullrich Date: Tue, 15 Dec 2009 11:41:13 -0500 Subject: Resolve Warning: Invalid argument supplied for foreach() in /usr/local/sbin/pfSsh.php(334) : eval()'d code on line 257 --- etc/phpshellsessions/gitsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/phpshellsessions') diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 545653a..ef92455 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -141,8 +141,8 @@ if(is_dir("$CODIR/pfSenseGITREPO/pfSenseGITREPO")) { "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git rebase origin", "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout -b $branch origin/$branch" ); + run_cmds($git_cmd); } - run_cmds($git_cmd); } else { exec("mkdir -p $CODIR/pfSenseGITREPO"); echo "Executing cd $CODIR/pfSenseGITREPO && git clone $GIT_REPO pfSenseGITREPO\n"; -- cgit v1.1