From 8000930dcaa491b7013305193ab4ac25424ccb4b Mon Sep 17 00:00:00 2001 From: lhark Date: Sat, 12 Dec 2015 22:46:20 +0100 Subject: [PATCH] Add file existence check to install script --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b54acd4..8744534 100755 --- a/install.sh +++ b/install.sh @@ -11,6 +11,9 @@ OLDPATH=`pwd` cd $HOME for file in $FILES do - ln -s ${SCRIPTPATH}/${file} .${file} + if [ ! -f .${file} ] + then + ln -s ${SCRIPTPATH}/${file} .${file} + fi done cd $OLDPATH