From 68bbc2fdc3ccf2ff63b052dfea45db525e8b176a Mon Sep 17 00:00:00 2001 From: Tyler Davis Date: Thu, 10 Dec 2020 11:24:22 -0800 Subject: brew: new script, check work dir --- .bin/allupdate | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.bin') 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 -- cgit v1.2.3