Permalink
Cannot retrieve contributors at this time
executable file
16 lines (13 sloc)
364 Bytes
|
#!/bin/bash |
|
|
|
cd `dirname $0` |
|
|
|
for folder in examples/* ; do |
|
cp -n packages/create-next-app/templates/default/gitignore $folder/.gitignore; |
|
if [ -f "$folder/package.json" ]; then |
|
cat $folder/package.json | jq '.license = "MIT"' | sponge $folder/package.json |
|
fi |
|
done; |
|
|
|
if [[ ! -z $(git status -s) ]];then |
|
echo "Detected changes" |
|
git status |
|
exit 1 |
|
fi |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.