From 36a785b7df50e261c7c0f8af033f1c75ed00d1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sat, 30 Nov 2024 15:43:42 +0100 Subject: [PATCH] Fix the heed3 script on Linux --- convert-to-heed3.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/convert-to-heed3.sh b/convert-to-heed3.sh index f92ef4b2..16d7b720 100755 --- a/convert-to-heed3.sh +++ b/convert-to-heed3.sh @@ -14,7 +14,11 @@ cp heed3/Cargo.toml heed/Cargo.toml # ...and replaces the `heed::` string by the `heed3::` one. for file in $(find heed/src -type f -name "*.rs"); do - sed -i '' 's/heed::/heed3::/g' "$file" + if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' 's/heed::/heed3::/g' "$file" + else + sed -i 's/heed::/heed3::/g' "$file" + fi done echo "Heed3 crate setup completed successfully. Copied and modified configurations for the heed crate."