]> Sergey Matveev's repositories - schwabrak.git/commitdiff
Trivial style fixes
authorSergey Matveev <stargrave@stargrave.org>
Sun, 18 Feb 2024 18:43:55 +0000 (21:43 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 18 Feb 2024 18:43:55 +0000 (21:43 +0300)
lib.zsh.rc
show

index 159dbb23ac81eb52ecda6d9a56536e50d451e003502bb1746fc3351cee8ea6bc..d4ef1e2286b421c02f6ee2a85d5732d113a821bcff30e8de5f3211aa5f72cd17 100644 (file)
@@ -1,5 +1,4 @@
-set -e
-setopt EXTENDED_GLOB GLOB_STAR_SHORT
+setopt ERR_EXIT EXTENDED_GLOB GLOB_STAR_SHORT
 
 PERL=${PERL:-perl}
 EDITOR=${EDITOR:-vi}
diff --git a/show b/show
index 0792bc87822918bd6c7480e34451f53221fd536b3d816b877b88460456da7548..7f9d258cc394d0803471981b05b591ebef65b8d8cbbe711dad75023a1f48a6d8 100755 (executable)
--- a/show
+++ b/show
@@ -14,7 +14,7 @@ deps=(issues/$issue/deps/*(N))
 }
 delim
 cat issues/$issue/about
-[[ -s issues/$issue/result ]] && {
+[[ ! -s issues/$issue/result ]] || {
     delim
     cat issues/$issue/result
 }