-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I know this is intended to be run through docker; however when run on macOS, the fixers don't work due to a missing space in the sed arguments.
It results in the following error:
sed: -e: No such file or directory
The solution is to simply add a space between the -i of the sed command and the blank '' on this line:
| MY_FIX_CMD="aci-trailing-newline -1 \"\$1\" || ((echo \"\" >> \"\$1\" && sed -i\"\" -e :a -e \"/^\n*\\\$/{\\\$d;N;ba\" -e \"}\" \"\$1\") && echo \"Fixing: \$1\" || echo \"FAILED: \$1\")" |
So it becomes this:
MY_FIX_CMD="aci-trailing-newline -1 \"\$1\" || ((echo \"\" >> \"\$1\" && sed -i \"\" -e :a -e \"/^\n*\\\$/{\\\$d;N;ba\" -e \"}\" \"\$1\") && echo \"Fixing: \$1\" || echo \"FAILED: \$1\")"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels