rsnext/check-git-ignore.sh
Tanmay Laud f00ad581a1
Added .gitignore to examples that are deployed to vercel (#15127)
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-07-16 10:52:23 -04:00

13 lines
235 B
Bash
Executable file

#!/bin/bash
cd `dirname $0`
for folder in examples/* ;
do cp -n packages/create-next-app/templates/default/gitignore $folder/.gitignore;
done;
if [[ ! -z $(git status -s) ]];then
echo "Detected changes"
git status
exit 1
fi