diff options
author | Tyler Davis <tydavis@gmail.com> | 2020-12-02 05:32:27 +0000 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2020-12-02 05:32:27 +0000 |
commit | 7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8 (patch) | |
tree | d46f75f072ab497c9835a594c1b5ec7eee964ccf | |
parent | cec6cd9291fdfa5f48d8cff8fd47274f55df988e (diff) | |
download | dotfiles-7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8.tar.gz dotfiles-7da19fdaf1b561fc8e3730d036b31c4e4f5d1ba8.zip |
shell: update only linux
-rwxr-xr-x | .bin/allupdate | 27 |
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; |