summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Davis <tydavis@gmail.com>2020-12-02 05:32:27 +0000
committerTyler Davis <tydavis@gmail.com>2020-12-02 05:32:27 +0000
commit7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8 (patch)
treed46f75f072ab497c9835a594c1b5ec7eee964ccf
parentcec6cd9291fdfa5f48d8cff8fd47274f55df988e (diff)
downloaddotfiles-7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8.tar.gz
dotfiles-7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8.zip
shell: update only linux
-rwxr-xr-x.bin/allupdate27
1 files changed, 12 insertions, 15 deletions
diff --git a/.bin/allupdate b/.bin/allupdate
index 2b4ed34..67b06fe 100755
--- a/.bin/allupdate
+++ b/.bin/allupdate
@@ -59,28 +59,25 @@ case "$OSTYPE" in
pacman -Qmq > ~/.setup/pacaur
# Git config for work
fd -H -t d -E mod -E vendor '.git$' ~/code/work -x bash -c "cd {//}; git config user.email tyler.m.davis@nordstrom.com; git config http.cookiefile /home/tydavis/.gitcookies-work;" ;
+ if [ "$(command -v fetchgit)" ]; then
+ # Update all existing repos
+ fd -H -t d -E mod -E vendor '.git$' ~/code -x bash -c "cd {//}; ~/.bin/fetchgit;" ;
+ fd -H -t d '.git$' ~/.vim -x bash -c "cd {//}; ~/.bin/fetchgit;" ;
+ fi
+ if [ "$(command -v gitrect)" ]; then
+ # Synchronize work repo updates
+ gitrect -d ~/code/work -c ~/code/work/dotfiles/.setup/gitlist
+ gitrect;
+ # Update our list of git repos
+ gitrect -u;
+ fi
;;
esac
-
-if [ "$(command -v fetchgit)" ]; then
- # Update all existing repos
- fd -H -t d -E mod -E vendor '.git$' ~/code -x bash -c "cd {//}; ~/.bin/fetchgit;" ;
- fd -H -t d '.git$' ~/.vim -x bash -c "cd {//}; ~/.bin/fetchgit;" ;
-fi
-
if [ "$(command -v gcloud )" ]; then
# Update Gcloud
gcloud components update -q;
fi
-if [ "$(command -v gitrect)" ]; then
- # Synchronize work repo updates
- gitrect -d ~/code/work -c ~/code/work/dotfiles/.setup/gitlist
- gitrect;
- # Update our list of git repos
- gitrect -u;
-fi
-
echo "" # Newline
date;