try separating the ssh host

main
Jonathan Dahan 11 months ago
parent 61bf2819a5
commit a9112f896b

@ -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
Loading…
Cancel
Save