#!/bin/sh -e LINT=${LINT:=1} h=huike src=~/src/mkws.sh.huike dst=~/www/htdocs/mkws.sh bak="${dst}".bak printf "are you sure? " read -r REPLY test "${REPLY}" != "y" && exit 1 bin/mkws clean bin/mkws cd "${src}" || exit if test "${LINT}" -eq 1 then bin/precommit -v || (herbe "${PWD##*/}: up fail"; exit 1) fi ssh -T "${h}" <