small pixel drawing of a pufferfish pa

die on editor non-zero exit
Jes Olson j3s@c3f.net
Mon, 23 Sep 2024 16:40:05 -0400
commit

fcffa08ab371a9d24a72cfe91144f7ec11a4a7f3

parent

8f9a71fc3f65770e0c1e69506ddd432adfcac6d1

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M papa

@@ -63,7 +63,8 @@ $age --decrypt -i "$identities_file" -o "$tmpfile" "./$name.age" ||

die "Couldn't decrypt $name.age" }; fi - ${EDITOR:-vi} "$tmpfile" + ${EDITOR:-vi} "$tmpfile" || + die "EDITOR exited non-zero" [ -s "$tmpfile" ] && { mkdir -p "$(dirname "./$name")" ||