mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 02:25:11 +01:00
Silenced the remote update and made the noop cleaner
This commit is contained in:
@@ -58,7 +58,7 @@ for LINE in "${LINES[@]}"; do
|
|||||||
if [ -e $REPODIR ]; then
|
if [ -e $REPODIR ]; then
|
||||||
cd $REPODIR
|
cd $REPODIR
|
||||||
|
|
||||||
git remote update > /dev/null
|
git remote update &> /dev/null
|
||||||
|
|
||||||
LOCAL=$(git rev-parse @)
|
LOCAL=$(git rev-parse @)
|
||||||
REMOTE=$(git rev-parse @{u})
|
REMOTE=$(git rev-parse @{u})
|
||||||
@@ -69,7 +69,7 @@ for LINE in "${LINES[@]}"; do
|
|||||||
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR changed - $WORKSPACE/$GRP/$REPODIR"
|
echo -e "[\e[31mX\e[0m] $GRP/$REPODIR changed - $WORKSPACE/$GRP/$REPODIR"
|
||||||
elif [ $LOCAL = $REMOTE ]; then
|
elif [ $LOCAL = $REMOTE ]; then
|
||||||
# Up-to-date
|
# Up-to-date
|
||||||
echo -e "[\e[32mN\e[0m] $GRP/$REPODIR"
|
echo -e "[\e[32m-\e[0m] $GRP/$REPODIR"
|
||||||
elif [ $LOCAL = $BASE ]; then
|
elif [ $LOCAL = $BASE ]; then
|
||||||
# Need to pull
|
# Need to pull
|
||||||
echo -e "[\e[33mU\e[0m] $GRP/$REPODIR"
|
echo -e "[\e[33mU\e[0m] $GRP/$REPODIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user