From 053c2da6ac6de2f8dd0a755df98987c88d71963b Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 18 Sep 2021 11:40:51 -0400 Subject: [PATCH] [+] fastinstall: check if already installed --- fastinstall.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fastinstall.sh b/fastinstall.sh index 56617bd..452f165 100644 --- a/fastinstall.sh +++ b/fastinstall.sh @@ -1,6 +1,12 @@ # Go to home directory pushd $HOME +# Check if already installed +if [ -d "zshrc" ]; then + echo "Already installed." + exit -1 +fi + # Clone repo git clone "https://github.com/hykilpikonna/zshrc"