#871 - Using grep -q

pull/829/head
Augusto Monteiro 'Sparky 2017-07-05 15:31:31 -04:00 committed by Steve Penrod
parent ba8a496be4
commit 9d9429a664
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ cd "${mycroft_skill_folder}"
for d in $(find "${mycroft_skill_folder}" -mindepth 1 -maxdepth 1 -type d |grep -v '.git'$ ); do
if git -C "$d" rev-parse --git-dir > /dev/null 2>&1; then
cd "${d}"
if ! cat .git/info/exclude | grep "*.pyc" >> /dev/null; then
if ! grep -q '.pyc'$ .git/info/exclude; then
echo "*.pyc" >> .git/info/exclude
fi
if [[ -z $(git status --porcelain) ]]; then