1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 22:55:10 +01:00

Finished the git commands

This commit is contained in:
Michiel Scholten
2014-07-17 21:58:59 +02:00
parent 025b6a51dd
commit e8c6da8092

View File

@@ -35,17 +35,16 @@ for GRP in "${GRPS[@]}"; do
REPODIR="${REPODIR%.*}" REPODIR="${REPODIR%.*}"
if [ -e $REPODIR ]; then if [ -e $REPODIR ]; then
cd $REPODIR cd $REPODIR
#git diff --quiet || echo "[c] skipping" if ! git diff --quiet; then
git diff --quiet echo -e "[\e[31mX\e[0m] $GRP/$REPODIR changed - $WORKSPACE/$GRP/$REPODIR"
if [ $? > 0 ]; then
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR changed - $WORKSPACE/$GRP/$REPO"
else else
echo -e "[\e[32mU\e[0m] $GRP/$REPODIR" echo -e "[\e[32mU\e[0m] $GRP/$REPODIR"
#git pull git pull --quiet
git push --quiet
fi fi
else else
#git clone $REPO
echo -e "[\e[33mC\e[0m] $GRP/$REPODIR" echo -e "[\e[33mC\e[0m] $GRP/$REPODIR"
git clone --quiet $REPO
fi fi
done done
else else