mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
Finished the git commands
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user