aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 20:03:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 20:03:06 +1200
commit47a06511da299e18f965771d24b69f7e2566d950 (patch)
treeafa0d1be7d8ededf0aa5771ea1fe47b2a54e5b1c
parentAdd CentOS and Debian .vim tweaks (diff)
downloaddotfiles-47a06511da299e18f965771d24b69f7e2566d950.tar.gz
dotfiles-47a06511da299e18f965771d24b69f7e2566d950.zip
Use if not && for conditional install
The whole expression evaluates true this way.
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7e4260bf..e864a7ad 100644
--- a/Makefile
+++ b/Makefile
@@ -550,10 +550,12 @@ install-vim-compiler:
install-vim-config:
mkdir -p -- $(VIMDIR)/config
cp -p -- vim/vimrc $(VIMRC)
- test -e /etc/debian_version \
- && cp -p -- vim/config/debian.vim $(VIMDIR)/config
- test -e /etc/centos-release \
- && cp -p -- vim/config/centos.vim $(VIMDIR)/config
+ if [ -e /etc/debian_version ] ; then \
+ cp -p -- vim/config/debian.vim $(VIMDIR)/config ; \
+ fi
+ if [ -e /etc/centos-release ] ; then \
+ cp -p -- vim/config/centos.vim $(VIMDIR)/config ; \
+ fi
install-vim-filetype:
cp -p -- vim/filetype.vim vim/scripts.vim $(VIMDIR)