scripts: ext-tools: follow links for host tools path
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 11 Nov 2022 01:32:15 +0000 (02:32 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 23 Jan 2023 18:18:05 +0000 (19:18 +0100)
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@gmail.com>
scripts/ext-tools.sh

index bf56f4d9edf9c9cf32a985d8819c19e21c61927f..13fbd43018b50a718ed65cbf97505ea00338c859 100755 (executable)
@@ -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() {