Permalink
Browse files

.

  • Loading branch information...
1 parent 3af53ae commit 777fc42efa9cf0fb199170cf27657ea3896f7c3b @davglass committed Aug 13, 2009
Showing with 8 additions and 3 deletions.
  1. +8 −3 index.php
View
@@ -16,9 +16,14 @@
$cmd = 'cd '.$base.' && '.$git.' checkout master && '.$git.' pull && '.$git.' checkout '.$_GET['fetch'] .' && cp -R '.$base.'/build '.$tag.'/build && '.$git.' checkout master';
echo('<pre>'.$cmd.'</pre>');
//passthru($cmd);
- $out = array();
- exec($cmd, $out);
- echo('<pre>'.implode($out, "\n").'</pre>');
+ $output = array();
+ $result;
+
+ $oldUMask = umask(0022);
+ exec($cmd . " 2>&1", $output, $result);
+ umask($oldUMask);
+
+ echo('<pre>'.implode($output, "\n").'</pre>');
echo('Tag sync done, you can now use this tag as a combo URL');
} else {

0 comments on commit 777fc42

Please sign in to comment.