From fbab3d4ebb07d5ab08b87ae2c97a68527a9fefd9 Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Thu, 18 May 2023 22:04:37 +0200 Subject: [PATCH] lint: fix SC2004 shellcheck warning --- testsuite/bin/install_test_sh | 2 +- testsuite/lint.00-init/005-init_ts.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testsuite/bin/install_test_sh b/testsuite/bin/install_test_sh index ea94373e..4d393692 100755 --- a/testsuite/bin/install_test_sh +++ b/testsuite/bin/install_test_sh @@ -102,7 +102,7 @@ case "$mode" in for cmd in ${cmdlist}; do unset IFS eval "$cmd" - ret=$(($ret+$?)) + ret=$((ret+$?)) IFS=';' done unset IFS diff --git a/testsuite/lint.00-init/005-init_ts.exp b/testsuite/lint.00-init/005-init_ts.exp index d9b80446..80f86cbd 100644 --- a/testsuite/lint.00-init/005-init_ts.exp +++ b/testsuite/lint.00-init/005-init_ts.exp @@ -108,7 +108,7 @@ array set file_lint_opts [list\ init/sh {-e SC2089,SC2090}\ init/bash_completion {-e SC2207}\ script/add.modules {-e SC2162}\ - testsuite/bin/install_test_sh {-e SC1090,SC2004,SC3037,SC3044}\ + testsuite/bin/install_test_sh {-e SC1090,SC3037,SC3044}\ ] proc set_linter_opts {fpath} {