summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremote/setup_target2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 4b026a6d..172bc7d4 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -484,7 +484,7 @@ clean_modules() {
&& rm -rf "${TARGET_BUILD_DIR}"/* \
|| perror "Error deleting $TARGET_BUILD_DIR"
fi
- set -- $(ls ${TARGET_DIR} | grep -v kernel)
+ set -- $(ls ${TARGET_DIR} | grep -vE "^kernel$")
fi
cd "$TARGET_DIR"