Skip to content

Commit

Permalink
Fix the heed3 script on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Nov 30, 2024
1 parent 775a698 commit 36a785b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion convert-to-heed3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 36a785b

Please sign in to comment.