From 08099019e52b381aff38b053be215e551f85c2f2 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 23 Mar 2018 11:20:45 +0100 Subject: [PATCH] tools: setup-virtualenv.sh: check for mandatory argument Signed-off-by: Nathan Cutler --- src/tools/setup-virtualenv.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/setup-virtualenv.sh b/src/tools/setup-virtualenv.sh index f991b21c022a..9d888ce8cb0c 100755 --- a/src/tools/setup-virtualenv.sh +++ b/src/tools/setup-virtualenv.sh @@ -30,6 +30,10 @@ while true ; do done DIR=$1 +if [ -z "$DIR" ] ; then + echo "$SCRIPTNAME: need directory path in which to create virtualenv" + exit 1 +fi rm -fr $DIR mkdir -p $DIR virtualenv --python $PYTHON_BINARY $DIR -- 2.47.3