From e47c16b56e61b8dac49e0002050e28656b87bece Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Fri, 8 Nov 2024 10:36:43 -0800 Subject: [PATCH] removeReferencesToVendoredSourcesHook: avoid using /dev/fd directly (#737) --- CHANGELOG.md | 2 ++ lib/setupHooks/removeReferencesToVendoredSourcesHook.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af2f35a..ff1eec24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed * `buildTrunkPackage` will pass in `--release=true` (instead of just `--release`) for trunk versions 0.21 or higher to avoid argument ambiguities +* `removeReferencesToVendoredSourcesHook` avoids referencing `/dev/fd` + directly since it may not be present on certain platforms ## [0.19.1] - 2024-10-12 diff --git a/lib/setupHooks/removeReferencesToVendoredSourcesHook.sh b/lib/setupHooks/removeReferencesToVendoredSourcesHook.sh index 380d7d62..5f121452 100644 --- a/lib/setupHooks/removeReferencesToVendoredSourcesHook.sh +++ b/lib/setupHooks/removeReferencesToVendoredSourcesHook.sh @@ -9,7 +9,7 @@ removeReferencesToVendoredSources() { echo stripping references to cargoVendorDir from: find "${installLocation}" -type f | sort | - tee -a /dev/fd/3 | + tee -a >(cat >&3) | xargs --no-run-if-empty sed -i'' -f <( echo -n 's!@storeDir@/\(eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee'