fixing some issues in update script.
This commit is contained in:
parent
10f763f71c
commit
f49c181e21
13
envupdate.sh
13
envupdate.sh
|
@ -25,13 +25,18 @@ tar xjvf vimdir.tar.bz2
|
||||||
|
|
||||||
# zsh dir
|
# zsh dir
|
||||||
|
|
||||||
if [ -d "~/dev/dotfiles" ] ; then
|
if [[ -d ~/dev/dotfiles ]]; then
|
||||||
cd ~/dev/dotiles
|
cd ~/dev/dotfiles
|
||||||
git pull
|
git pull
|
||||||
ln -s ~/dev/dotfiles/.zsh ~/.zsh
|
ln -s ~/dev/dotfiles/.zsh ~/
|
||||||
else
|
else
|
||||||
|
if [[ -d ~/.zsh ]]; then
|
||||||
|
rm ~/.zsh
|
||||||
|
else
|
||||||
|
printf '%s\n' "No .zsh dir exists."
|
||||||
|
fi
|
||||||
mkdir ~/dev
|
mkdir ~/dev
|
||||||
cd ~/dev
|
cd ~/dev
|
||||||
git clone https://github.com/staticsafe/dotfiles.git
|
git clone https://github.com/staticsafe/dotfiles.git
|
||||||
ln -s ~/dev/dotfiles/.zsh ~/.zsh
|
ln -s ~/dev/dotfiles/.zsh ~/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue