diff --git a/webhook.py b/webhook.py index b6ba027..50edae9 100755 --- a/webhook.py +++ b/webhook.py @@ -22,7 +22,7 @@ class Handler(BaseHTTPRequestHandler): # Rebuild site subprocess.run(["zola", "build", "--force"], cwd="/site/src", check=False) - subprocess.run(["sh", "-c", "cp -r /site/src/public/* /usr/share/nginx/html/"], shell=True, check=False) + subprocess.run("cp -r /site/src/public/* /usr/share/nginx/html/", shell=True, check=False) self.send_response(200) self.end_headers()