From b8de1150f378d224c51a86ee9d02050beaab8056 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 27 Apr 2024 19:24:41 -0400 Subject: [PATCH] satisfy shellcheck --- logq-function | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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" -- 2.30.2