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."