]> git.wh0rd.org Git - home.git/commitdiff
catch errors when editing
authorMike Frysinger <vapier@gentoo.org>
Sat, 1 Dec 2012 18:39:07 +0000 (13:39 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 1 Dec 2012 18:39:07 +0000 (13:39 -0500)
.bin/er-close

index a9edb8d260c7a762f986ff73d78d5a81449c11cd..ffebefdb5f007e8542e806652a6443fec8dc6dd5 100755 (executable)
@@ -117,6 +117,7 @@ case ${g} in
                t=$(mktemp)
                echo "${cmds}" > "${t}"
                ${EDITOR:-nano} "${t}" || rm "${t}"
+               set -e
                . "${t}"
                rm "${t}"
                ;;