From a62d8c49ec4618c99df088e19aef066fee283b6b Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sun, 19 May 2019 01:12:41 +0200 Subject: [PATCH] fix make --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e046a48..3bbc6db 100644 --- a/Makefile +++ b/Makefile @@ -9,14 +9,14 @@ install: build | $(HOME)/.resh $(HOME)/.resh/bin $(HOME)/.config $(HOME)/.resh/r cp config.toml ~/.config/resh.toml -f cp shellrc.sh ~/.resh/shellrc -f cp resh-* ~/.resh/bin/ -f - [ -f ~/.resh-history.json ] && mv ~/resh-history.json ~/.resh/history.json + [ ! -f ~/resh-history.json ] || mv ~/resh-history.json ~/.resh/history.json grep '[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' ~/.bashrc ||\ echo '[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' >> ~/.bashrc grep '[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh' ~/.bashrc ||\ echo '[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh' >> ~/.bashrc grep '[ -f ~/.resh/shellrc ] && source ~/.resh/shellrc' ~/.zshrc ||\ echo '[ -f ~/.resh/shellrc ] && source ~/.resh/shellrc' >> ~/.zshrc - kill -SIGTERM $$(cat ~/.resh/resh.pid) + [ ! -f ~/.resh/resh.pid ] || kill -SIGTERM $$(cat ~/.resh/resh.pid) nohup resh-daemon &>/dev/null & disown uninstall: