From ab7c98859fa8a855fbf65822fcbfd3519b33a5a0 Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Wed, 8 Feb 2017 23:40:11 -0500 Subject: Preventing errors with $DIR --- linker.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linker.sh b/linker.sh index 23ce070..a3a290a 100755 --- a/linker.sh +++ b/linker.sh @@ -11,7 +11,7 @@ cd ~ if [[ -e .bashrc ]] ; then cp .bashrc .bashrc.original fi -ln -s $DIR/.bashrc ~/.bashrc +ln -s "$DIR"/.bashrc ~/.bashrc # Next .vim(rc) if [[ -e .vimrc ]] ; then @@ -20,8 +20,8 @@ fi if [[ -e .vim ]] ; then cp -r .vim .vim.original fi -ln -s $DIR/.vimrc ~/.vimrc -ln -s $DIR/.vim ~/.vim +ln -s "$DIR"/.vimrc ~/.vimrc +ln -s "$DIR"/.vim ~/.vim # Next .git if [[ -e .gitconfig ]] ; then @@ -30,6 +30,6 @@ fi if [[ -e .gitignore_global ]] ; then cp .gitignore_global .gitignore_global.original fi -ln -s $DIR/.gitconfig ~/.gitconfig -ln -s $DIR/.gitignore_global .gitignore_global +ln -s "$DIR"/.gitconfig ~/.gitconfig +ln -s "$DIR"/.gitignore_global ~/.gitignore_global -- cgit v1.2.3