markogresak/js-to-tsx

Ubuntu: problem with sh (instead of bash)

Closed this issue · 2 comments

Since Ubuntu has some other default shell than bash I get an error for each file to be renamed:

_: 1: _: Syntax error: redirection unexpected

Better call bash instead of sh in the find command.

Thanks for reporting this, I've fixed it.

Btw, lyft/react-javascript-to-typescript-transform is a way better alternative to this script.