X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=logq-function;h=410e683beb9b6ac360725c1c208ba4e4ac6c6297;hb=refs%2Fheads%2Fmaster;hp=3744d101ffeab7e34cff643396d8377ded56175c;hpb=b8de1150f378d224c51a86ee9d02050beaab8056;p=log-quiet diff --git a/logq-function b/logq-function index 3744d10..410e683 100644 --- 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