#871 - Using grep -q
parent
ba8a496be4
commit
9d9429a664
2
msm/msm
2
msm/msm
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue