From a9112f896bb70f86e964a46120075c0938eb2a8a Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Sun, 2 Jun 2024 14:46:41 -0400 Subject: [PATCH] try separating the ssh host --- hooks/pre-push | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hooks/pre-push b/hooks/pre-push index 125df9a..340b319 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -8,6 +8,5 @@ echo "[deploy] updating post-receive hook"; { ssh_host=$(echo $url | cut -d'/' -f3) ssh_path=$(echo $url | cut -d'/' -f4-) - echo scp hooks/post-receive ${ssh_host}:${ssh_path}/hooks/post-receive + scp hooks/post-receive ${ssh_host}:${ssh_path}/hooks/post-receive } -exit 1 \ No newline at end of file