From 5542edd5110e26e885f03d3f17f9e8cf222350b2 Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sun, 2 Oct 2022 01:48:00 +0000 Subject: [PATCH] scripts/autoremove: shellcheck changes Signed-off-by: Ian Leonard --- scripts/autoremove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autoremove b/scripts/autoremove index ac57465489..3d13803148 100755 --- a/scripts/autoremove +++ b/scripts/autoremove @@ -5,7 +5,7 @@ . config/options "${1}" -if [ -d "${PKG_BUILD}" -a "${PKG_SECTION}" != "virtual" ]; then +if [ -d "${PKG_BUILD}" ] && [ "${PKG_SECTION}" != "virtual" ]; then print_color CLR_AUTOREMOVE "AUTOREMOVE ${PKG_BUILD}" echo rm -r "${PKG_BUILD}"