From 93dce0acdf09c9788add5bcc0e5923dfa2d31aec Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 1 Dec 2012 13:39:07 -0500 Subject: [PATCH] catch errors when editing --- .bin/er-close | 1 + 1 file changed, 1 insertion(+) 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}" ;; -- 2.39.5