Shell: git-check.
parent
82f2571dcf
commit
7876663de6
|
@ -863,6 +863,17 @@ crun()
|
|||
rm "$FILE"
|
||||
}
|
||||
|
||||
git-check()
|
||||
{
|
||||
while IFS= read -r FOLDER; do
|
||||
if [ -z "$(cd "${FOLDER%/*}" && git status -uno | grep "nothing to commit")" ]; then
|
||||
echo "${FOLDER%/*}"
|
||||
fi
|
||||
done <<EOF
|
||||
$(find . -type d -name ".git")
|
||||
EOF
|
||||
}
|
||||
|
||||
##==============================================================================
|
||||
## Pacman functions
|
||||
##==============================================================================
|
||||
|
|
Loading…
Reference in New Issue