Skip to content

Commit

Permalink
fix script not running on macOs (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf authored Oct 11, 2022
1 parent 2eb97eb commit b120576
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/update_polkadot_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ display()

replace()
{
sed -i "s/$1/$2/g" $3
if [[ $OSTYPE == 'darwin'* ]]; then
gsed -i "s/$1/$2/g" $3
else
sed -i "s/$1/$2/g" $3
fi
}

if [ "$#" -ne 2 ]
Expand Down

0 comments on commit b120576

Please sign in to comment.