Skip to content

Commit

Permalink
Fix "sed: illegal option -- r" on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcandroid committed Sep 21, 2020
1 parent 97c468e commit 752a5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename-to-tsx
Expand Up @@ -30,7 +30,7 @@ rename_all () {

# Rename both .js and .jsx to .ts and .tsx, respectively.
rename_respectively () {
rename_with 'mv "$1" `sed -re "s/\.js(x)?$/\.ts\1/g" <<< "$1"`'
rename_with 'mv "$1" `sed -Ee "s/\.js(x)?$/\.ts\1/g" <<< "$1"`'
exit 0
}

Expand Down

0 comments on commit 752a5dd

Please sign in to comment.