git: 4b0615e585d8 - main - stress2: Handle a define with comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Dec 2023 09:37:56 UTC
The branch main has been updated by pho:
URL: https://cgit.FreeBSD.org/src/commit/?id=4b0615e585d83d2a67b4501b5bf460582556925b
commit 4b0615e585d83d2a67b4501b5bf460582556925b
Author: Peter Holm <pho@FreeBSD.org>
AuthorDate: 2023-12-01 09:37:13 +0000
Commit: Peter Holm <pho@FreeBSD.org>
CommitDate: 2023-12-01 09:37:13 +0000
stress2: Handle a define with comments
---
tools/test/stress2/misc/nlink5.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/test/stress2/misc/nlink5.sh b/tools/test/stress2/misc/nlink5.sh
index 4e7f2d9c827d..0738bc7548bf 100755
--- a/tools/test/stress2/misc/nlink5.sh
+++ b/tools/test/stress2/misc/nlink5.sh
@@ -35,7 +35,7 @@
UFS_LINK_MAX=`grep UFS_LINK_MAX /usr/include/ufs/ufs/dinode.h 2>/dev/null`
[ -z "$UFS_LINK_MAX" ] && exit 0
-UFS_LINK_MAX=`echo $UFS_LINK_MAX | awk '{print $NF}'`
+UFS_LINK_MAX=`echo $UFS_LINK_MAX | awk '{print $3}'`
cat > /tmp/nlink5.c <<EOF
#include <sys/stat.h>
#include <ufs/ufs/dinode.h>