From 1d69498623c0eced2de0f97cd553aff81a936911 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 14 Dec 2024 08:55:18 -0700 Subject: [PATCH] depend-cleanup: Fix test arg -e follows the symlink to see if the file exists. I tested on the wrong tree, so it appeared to work for me. Change to -h which see if the link is there or not. The file will never not be a link if present. Fixes: 42ee30f19cc7 Noticed by: Herbert Skuhra Sponsored by: Netflix --- tools/build/depend-cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh index 81acf517f9d770..8aee1d0e9e71f1 100755 --- a/tools/build/depend-cleanup.sh +++ b/tools/build/depend-cleanup.sh @@ -233,7 +233,7 @@ clean_dep lib/libcrypt crypt-sha256 c clean_dep lib/libcrypt crypt-sha512 c # 20241213 b55f5e1c4ae3 jemalloc: Move generated jemalloc.3 into lib/libc tree -if [ -e "$OBJTOP"/lib/libc/jemalloc.3 ]; then +if [ -h "$OBJTOP"/lib/libc/jemalloc.3 ]; then # Have to cleanup the jemalloc.3 in the obj tree since make gets # confused and won't use the one in lib/libc/malloc/jemalloc/jemalloc.3 echo "Removing stale jemalloc.3 object"