We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sed -i
1 parent b159863 commit 766b0c7Copy full SHA for 766b0c7
setup.sh
@@ -75,7 +75,13 @@ name=$(basename "$(pwd)" | tr '-' '_')
75
76
find . -type f -not -path '*/\.*' -not -name 'setup.sh' -exec sh -c '
77
if file -b --mime-type "$1" | grep -q "^text/"; then
78
- sed -i "" "s/$2/$3/g" "$1"
+ if [ "$(uname)" = "Darwin" ]; then
79
+ # macOS (BSD sed)
80
+ sed -i "" "s/$2/$3/g" "$1"
81
+ else
82
+ # Linux (GNU sed)
83
+ sed -i "s/$2/$3/g" "$1"
84
+ fi
85
fi
86
' sh {} "$current_name" "$name" \;
87
0 commit comments