rsnext/check-git-ignore.sh

14 lines
235 B
Bash
Raw Normal View History

#!/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