From 489813cdc8b664efdef665f0c011fb5ed6fe9e8f Mon Sep 17 00:00:00 2001 From: nirenjan Date: Fri, 3 May 2013 22:15:12 -0700 Subject: [PATCH] Fix creating symlink for the first time --- install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install b/install index aa1bf94..5e54171 100755 --- a/install +++ b/install @@ -29,6 +29,7 @@ lnfile() FILE_NAME=$(basename $2) DEST_FILE="$DF_PATH/$1" WRITE_LINK=0 + # See if the target exists if [[ -e $2 ]] then @@ -60,6 +61,8 @@ lnfile() mv -v $2 ${2}.bak WRITE_LINK=1 fi + else + WRITE_LINK=1 fi if [[ $WRITE_LINK == 1 ]]