summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2019-05-19 11:24:34 -0400
committerrsiddharth <rsd@gnu.org>2019-05-19 11:24:34 -0400
commit9f909aea468313e74716c5de37fd7cbd00de96fa (patch)
tree07370ddab205d7251637572d80a3bad0a50091ad
parent91bfd6ccbcd0d6e80727683084a7c9c735742706 (diff)
Makefile: Update venv3.
* Makefile (venv3): Factor venv backup shell expression into a if block.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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' \