status
parent
f550182b0f
commit
b0ea9f4f46
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/gamewheel/*/
|
||||
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
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
#for package in $()
|
||||
for dir in /usr/share/gamewheel/*/
|
||||
do
|
||||
dir_short_name=${dir%*/}
|
||||
dir_short_name=${dir_short_name##*/}
|
||||
|
||||
if [ -d "$dir/.git" ]; then
|
||||
echo "===========================starting============================ $dir_short_name"
|
||||
cd $dir
|
||||
git branch
|
||||
git pull
|
||||
echo "=============================done=============================="
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue