From: Ian Kelling Date: Sat, 27 Apr 2024 23:24:41 +0000 (-0400) Subject: satisfy shellcheck X-Git-Url: https://iankelling.org/git/?p=log-quiet;a=commitdiff_plain;h=HEAD satisfy shellcheck --- diff --git a/logq-function b/logq-function index a18319f..3744d10 100644 --- a/logq-function +++ b/logq-function @@ -53,11 +53,12 @@ $help" printf "%s\n%s\n\n" "Log of $prettycommand" "$(date)" >"$file" if [[ $- != *x* ]]; then - echo "log $file = $@" + echo "log $file = $*" fi # we will propagate any errors - local logq_ret=$( + local logq_ret + logq_ret=$( set +e trap ERR "$@" &>> "$file"