diff options
-rwxr-xr-x[-rw-r--r--] | GitAutoDeploy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index 5cc3469..ccf0232 100644..100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -62,7 +62,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler): if(not self.quiet): print "\nPost push request received" print 'Updating ' + path - call(['cd "' + path + '"; git pull'], shell=True) + call(['cd "' + path + '" && git pull'], shell=True) def deploy(self, path): config = self.getConfig() @@ -71,7 +71,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler): if 'deploy' in repository: if(not self.quiet): print 'Executing deploy command' - call(['cd "' + path + '";' + repository['deploy']], shell=True) + call(['cd "' + path + '" && ' + repository['deploy']], shell=True) break def main(): |