git: 1d69498623c0 - main - depend-cleanup: Fix test arg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Dec 2024 20:58:55 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=1d69498623c0eced2de0f97cd553aff81a936911 commit 1d69498623c0eced2de0f97cd553aff81a936911 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-12-14 15:55:18 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-12-14 20:56:10 +0000 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 81acf517f9d7..8aee1d0e9e71 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"