iankelling.org
/
git
/
log-quiet
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8de115
)
simplify for shellcheck
author
Ian Kelling
<iank@fsf.org>
Mon, 20 May 2024 22:04:29 +0000
(18:04 -0400)
committer
Ian Kelling
<iank@fsf.org>
Mon, 20 May 2024 22:04:29 +0000
(18:04 -0400)
logq-function
patch
|
blob
|
history
diff --git
a/logq-function
b/logq-function
index 3744d101ffeab7e34cff643396d8377ded56175c..410e683beb9b6ac360725c1c208ba4e4ac6c6297 100644
(file)
--- a/
logq-function
+++ b/
logq-function
@@
-58,12
+58,8
@@
$help"
# we will propagate any errors
local logq_ret
- logq_ret=$(
- set +e
- trap ERR
- "$@" &>> "$file"
- echo $?
- )
+ logq_ret=0
+ "$@" &>> "$file" || logq_ret=$?
printf "\n%s\n%s\n" "$(date)" "----------------" >> "$file"
if [[ $logq_ret != 0 ]]; then