From 8235e40f8919fa17511374199b25aff2cac32e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 21 Apr 2026 18:38:02 +0200 Subject: [PATCH] tools: Fix shellcheck issues in add_libs.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano FidĂȘncio --- tools/osbuilder/dracut/add_libs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/osbuilder/dracut/add_libs.sh b/tools/osbuilder/dracut/add_libs.sh index 23cb5e2ec5..108ed0a811 100755 --- a/tools/osbuilder/dracut/add_libs.sh +++ b/tools/osbuilder/dracut/add_libs.sh @@ -27,7 +27,7 @@ agent_binary="$1" non_standard_libs=("libutil.so") install_items="" -if [ ! -x "${agent_binary}" ]; then +if [[ ! -x "${agent_binary}" ]]; then echo >&2 "ERROR: ${agent_binary} is not an executable file" usage 1 fi @@ -35,7 +35,7 @@ fi # Cover both cases of "not a dynamic executable" being printed to STDERR # and "statically linked" being printed to STDOUT linked_libs="$(ldd "${agent_binary}" 2>&1)" -if [ "$(wc -l <<< "${linked_libs}")" == 1 ]; then +if [[ "$(wc -l <<< "${linked_libs}")" == 1 ]]; then echo >&2 "Agent appears to be linked statically, exiting" exit 0 fi