summaryrefslogtreecommitdiffstats
path: root/.bin
diff options
context:
space:
mode:
authorTyler Davis <tydavis@gmail.com>2020-12-10 11:24:22 -0800
committerTyler Davis <tydavis@gmail.com>2020-12-10 11:24:22 -0800
commit68bbc2fdc3ccf2ff63b052dfea45db525e8b176a (patch)
tree4517695b7a4cee94a1c856e0d6d69e132d8c4d6c /.bin
parent35d40ef8943bd2a986c0d19733456778984e5c2c (diff)
downloaddotfiles-68bbc2fdc3ccf2ff63b052dfea45db525e8b176a.tar.gz
dotfiles-68bbc2fdc3ccf2ff63b052dfea45db525e8b176a.zip
brew: new script, check work dir
Diffstat (limited to '.bin')
-rwxr-xr-x.bin/allupdate6
1 files changed, 4 insertions, 2 deletions
diff --git a/.bin/allupdate b/.bin/allupdate
index 67b06fe..1d258b7 100755
--- a/.bin/allupdate
+++ b/.bin/allupdate
@@ -42,8 +42,10 @@ case "$OSTYPE" in
brew list --cask -1 > ~/.setup/list.brewcask
# fetch the updated brew install script only if new
curl -fsSL -z ~/.setup/installbrew.sh --output ~/.setup/installbrew.sh https://raw.githubusercontent.com/Homebrew/install/master/install.sh
- # 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 /Users/tydavis/.gitcookies-work;" ;
+ if [ -d "~/code/work" ]; then
+ # 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 /Users/tydavis/.gitcookies-work;" ;
+ fi
if [ "$(command -v code)" ]; then
code --list-extensions > ~/.setup/code-extensions
fi