From: Ian Kelling Date: Sat, 27 Apr 2024 23:24:41 +0000 (-0400) Subject: satisfy shellcheck X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=b8de1150f378d224c51a86ee9d02050beaab8056;p=log-quiet 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"