From: Mike Frysinger Date: Sat, 1 Dec 2012 18:39:07 +0000 (-0500) Subject: catch errors when editing X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=93dce0acdf09c9788add5bcc0e5923dfa2d31aec;p=home.git catch errors when editing --- diff --git a/.bin/er-close b/.bin/er-close index a9edb8d..ffebefd 100755 --- a/.bin/er-close +++ b/.bin/er-close @@ -117,6 +117,7 @@ case ${g} in t=$(mktemp) echo "${cmds}" > "${t}" ${EDITOR:-nano} "${t}" || rm "${t}" + set -e . "${t}" rm "${t}" ;;