From f5174f5a85d9183e37c0687de1a8740c23daf8af Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sun, 14 Apr 2019 19:04:51 -0400 Subject: [PATCH] Corrected issue with sh not understanding quoted commands. --- vim/makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/makefile b/vim/makefile index 2aad9cb..5b7fa08 100644 --- a/vim/makefile +++ b/vim/makefile @@ -1,5 +1,5 @@ SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -TARGET_DIR := "~/.vim" +TARGET_DIR := ~/.vim INSTALLED := $(shell command -v vim 1>&2 >/dev/null ; echo $$? ) install: | init update @@ -9,8 +9,8 @@ ifneq ($(INSTALLED), 0) $(error Vim not installed) endif $(info => Setting up vim) - @ [ -e ~/.vim ] && echo " ~/.vim already exist. Skipping." || "ln -svf $(SRC_DIR) $(TARGET_DIR)" - @ [ -e ~/.vim ] && echo " ~/.vimrc already exist. Skipping." || "ln -svf $(TARGET_DIR)/vimrc ~/.vimrc" + @ [ -e ~/.vim ] && echo " ~/.vim already exist. Skipping." || ln -svf $(SRC_DIR) $(TARGET_DIR) + @ [ -e ~/.vimrc ] && echo " ~/.vimrc already exist. Skipping." || ln -svf $(TARGET_DIR)/vimrc ~/.vimrc update: $(info => Updating vim)