main
Jonathan Dahan 11 months ago
parent f9f82c5fdc
commit e54be48ec1

@ -5,5 +5,9 @@ remote="$1"
url="$2"
echo "[deploy] updating post-receive hook"; {
scp hooks/post-receive ${url/\/~/:~}/hooks/post-receive
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
}
exit 1
Loading…
Cancel
Save