main
Jonathan Dahan 11 months ago
parent e54be48ec1
commit 61bf2819a5

@ -5,8 +5,8 @@ remote="$1"
url="$2"
echo "[deploy] updating post-receive hook"; {
ssh_host=(echo $url | cut -d'/' -f3)
ssh_path=(echo $url | cut -d'/' -f4-)
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
}

Loading…
Cancel
Save