|
@@ -7,6 +7,7 @@ then
|
|
|
fi
|
|
|
LOG_ROOT="$HOME"/.local/var/log/shell
|
|
|
|
|
|
+EXIT_SUCCESS=false
|
|
|
LIST_MODE=false
|
|
|
ORS='\n'
|
|
|
|
|
@@ -40,7 +41,7 @@ the captured exit status.
|
|
|
EOF
|
|
|
}
|
|
|
|
|
|
-OPTSTRING=":hln:0"
|
|
|
+OPTSTRING=":zhln:0"
|
|
|
parse_opt () {
|
|
|
case "${opt}" in
|
|
|
h)
|
|
@@ -61,6 +62,9 @@ parse_opt () {
|
|
|
exit 1
|
|
|
fi
|
|
|
;;
|
|
|
+ z)
|
|
|
+ EXIT_SUCCESS=true
|
|
|
+ ;;
|
|
|
0)
|
|
|
ORS='\0'
|
|
|
;;
|
|
@@ -189,7 +193,12 @@ else
|
|
|
DAT="$LOG_DIR"/dat
|
|
|
INF="$LOG_DIR"/info
|
|
|
. <(tail -n +2 "$INF")
|
|
|
+ "$EXIT_SUCCESS" && status=0
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ false && cat "$ERR" >&2
|
|
|
cat "$OUT"
|
|
|
-
|
|
|
exit "$status"
|
|
|
fi
|