#!/bin/bash #for package in $() for dir in /usr/share/cybafelo/*/ 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