Created
July 5, 2018 06:55
-
-
Save NejcZupec/9675832ad0a63ef45e042f353519ecaf to your computer and use it in GitHub Desktop.
Fix license header
This file contains 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
#!/usr/bin/env bash | |
for f in $(find . -name '*.sql' -not -path "./node_modules/*") | |
do | |
if ! grep -q "Copyright" $f | |
then | |
echo $f | |
cat header_file $f >$f.new && mv $f.new $f | |
fi | |
done |
This file contains 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
/* License header file | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment