#!/bin/bash set -e -u remote="$1" url="$2" echo "[deploy] updating post-receive hook"; { scp hooks/post-receive ${url/\/~/:~}/hooks/post-receive }