2017-04-09 12:22:40 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
#for package in $()
|
2017-04-09 12:30:18 +02:00
|
|
|
for dir in /usr/share/cybafelo/*/
|
2017-04-09 12:22:40 +02:00
|
|
|
do
|
|
|
|
dir_short_name=${dir%*/}
|
|
|
|
dir_short_name=${dir_short_name##*/}
|
|
|
|
|
|
|
|
if [ -d "$dir/.git" ]; then
|
|
|
|
cd $dir
|
|
|
|
echo `echo "$dir_short_name: " && git fetch && git status | grep "\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\)" | sed "s/^.*\(clean\|Untracked files\|Changes not staged\|ahead.*commit\|behind.*commit\).*/\l\1 |/" | grep --color=always "\(changes not staged\|ahead.*commit\|clean\|untracked files\|behind.*commit\)"`
|
|
|
|
fi
|
|
|
|
done
|