Created
November 30, 2017 11:03
-
-
Save dudarenko-io/49fd7076f08240f7d74f3e7e4d0d60ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
directories=(Example Source Tests) | |
for directory in "${directories[@]}" | |
do | |
echo "Cleaning whitespace in directory: $directory" | |
find $directory -iregex '.*\.swift' -exec sed -E -i '' -e 's/[[:blank:]]*$//' {} \; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment