From 589383a42129b076fec31f077261b49255ce64e8 Mon Sep 17 00:00:00 2001 From: quackerd Date: Sun, 21 Feb 2021 05:50:54 +0000 Subject: [PATCH] Update 'setup.sh' --- setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index d9ca863..6ff3512 100644 --- a/setup.sh +++ b/setup.sh @@ -5,11 +5,14 @@ set +xe OZSH_HOME=$HOME/.ozsh # clone the repo -git clone https://git.quacker.org/d/ozsh $OZSH_HOME/ +if [ ! -d "$OZSH_HOME" ]; then + git clone https://git.quacker.org/d/ozsh $OZSH_HOME/ +fi # pull submodules git -C $OZSH_HOME submodule update --init --recursive # link .zshrc +rm -f $HOME/.zshrc ln -s $OZSH_HOME/.zshrc $HOME/.zshrc