ecb9f960 by Jeff Balicki

w

1 parent 90ed935f
......@@ -12,13 +12,13 @@ $BRANCH = "deploy";
if( file_exists($LOCAL_REPO) ) {
// If there is already a repo, just run a git pull to grab the latest changes
shell_exec("cd {$LOCAL_REPO} && git pull");
shell_exec("cd {$LOCAL_REPO} && sudo git pull");
echo 'worked';
die("done " . mktime());
} else {
// If the repo does not exist, then clone it into the parent directory
shell_exec("cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO}");
shell_exec("cd {$LOCAL_ROOT} && sudo git clone {$REMOTE_REPO}");
die("done " . mktime());
}
......