From 9f909aea468313e74716c5de37fd7cbd00de96fa Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 19 May 2019 11:24:34 -0400 Subject: Makefile: Update venv3. * Makefile (venv3): Factor venv backup shell expression into a if block. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 297f924..e7b55c0 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ venv: venv3: rm -rf *.egg-info - ${SHELL} -c '[[ -d $(VENV_DIR3) ]] && mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`' + ${SHELL} -c 'if [[ -d $(VENV_DIR3) ]] then mv $(VENV_DIR3) $(VENV_DIR3).`date +%s`; fi' ${VENV_CMD} --clear --python=python3 $(VENV_DIR3) @echo 'Initialized virtualenv, run' \ 'source '$(VENV_DIR3)'/bin/activate' \ -- cgit v1.2.3