Add file existence check to install script
This commit is contained in:
parent
181b1afc2c
commit
8000930dca
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue