mirror of
https://github.com/danbee/mac-setup
synced 2025-03-04 08:39:10 +00:00
Use pushd and popd instead of relying on cd -
This commit is contained in:
parent
d18d030d9a
commit
39a127e98d
@ -9,17 +9,17 @@ fi
|
||||
if [ ! -d "$HOME/dotfiles" ]; then
|
||||
git clone git@github.com:thoughtbot/dotfiles.git
|
||||
else
|
||||
cd "$HOME/dotfiles"
|
||||
pushd "$HOME/dotfiles"
|
||||
git pull
|
||||
cd -
|
||||
popd
|
||||
fi
|
||||
|
||||
if [ ! -d "$HOME/dotfiles-local" ]; then
|
||||
git clone git@github.com:danbee/dotfiles-local.git
|
||||
else
|
||||
cd "$HOME/dotfiles-local"
|
||||
pushd "$HOME/dotfiles-local"
|
||||
git pull
|
||||
cd -
|
||||
popd
|
||||
fi
|
||||
|
||||
env RCRC="$HOME/dotfiles/rcrc" rcup
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
export LDFLAGS="-L/usr/local/opt/zlib/lib"
|
||||
export CPPFLAGS="-I/usr/local/opt/zlib/include"
|
||||
|
||||
cd "$HOME"
|
||||
pushd "$HOME"
|
||||
|
||||
for tool in `awk -F " " '{print $1}' .tool-versions`; do
|
||||
asdf plugin-add "$tool"
|
||||
@ -15,4 +15,4 @@ done
|
||||
|
||||
asdf install
|
||||
|
||||
cd -
|
||||
popd
|
||||
|
||||
Loading…
Reference in New Issue
Block a user