[openwrt/openwrt] scripts: ext-tools: follow links for host tools path
LEDE Commits
lede-commits at lists.infradead.org
Mon Jan 23 10:19:06 PST 2023
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/1506f8c322c6f198d1903c62b19b9cbc12472b4e
commit 1506f8c322c6f198d1903c62b19b9cbc12472b4e
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Fri Nov 11 02:32:15 2022 +0100
scripts: ext-tools: follow links for host tools path
Host tools path may be a symbolic link. Use -H with find to follow path
links passed from command line to find command.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
scripts/ext-tools.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ext-tools.sh b/scripts/ext-tools.sh
index bf56f4d9ed..13fbd43018 100755
--- a/scripts/ext-tools.sh
+++ b/scripts/ext-tools.sh
@@ -5,7 +5,7 @@ HOST_BUILD_DIR=$(pwd)/"build_dir/host"
HOST_STAGING_DIR_STAMP=$(pwd)/"staging_dir/host/stamp"
refresh_timestamps() {
- find "$1" -not -type l -print0 | xargs -0 touch
+ find -H "$1" -not -type l -print0 | xargs -0 touch
}
extract_prebuilt_tar() {
More information about the lede-commits
mailing list