Skip to content

Commit 36a785b

Browse files
committed
Fix the heed3 script on Linux
1 parent 775a698 commit 36a785b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

convert-to-heed3.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ cp heed3/Cargo.toml heed/Cargo.toml
1414

1515
# ...and replaces the `heed::` string by the `heed3::` one.
1616
for file in $(find heed/src -type f -name "*.rs"); do
17-
sed -i '' 's/heed::/heed3::/g' "$file"
17+
if [[ "$OSTYPE" == "darwin"* ]]; then
18+
sed -i '' 's/heed::/heed3::/g' "$file"
19+
else
20+
sed -i 's/heed::/heed3::/g' "$file"
21+
fi
1822
done
1923

2024
echo "Heed3 crate setup completed successfully. Copied and modified configurations for the heed crate."

0 commit comments

Comments
 (0)