Using grep -q
@@ -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
