Disable redundant shellcheck warning

This commit is contained in:
caem 2024-05-14 10:58:26 +02:00
parent 45d4b8bad6
commit 91a94bd0fb
No known key found for this signature in database
GPG key ID: 3BCEDBB0C38805DA

View file

@ -13,7 +13,8 @@ done < <(echo "$package_list" | tail -n+$((table_start+2)))
unneeded_package_list=$(printf '%s ' "${unneeded_packages[@]}")
if [ -n "$(echo $unneeded_package_list | tr -d ' ')" ]; then
if [ -n "$(echo "$unneeded_package_list" | tr -d ' ')" ]; then
# shellcheck disable=SC2086
sudo zypper rm -u $unneeded_package_list
else
echo "No unneeded packages."