From de2f71ada5135daad2ed332653a5183743247c1f Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 23 Mar 2018 11:34:53 +0100 Subject: [PATCH] tools: setup-virtualenv.sh: improve error message Signed-off-by: Nathan Cutler --- src/tools/setup-virtualenv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/setup-virtualenv.sh b/src/tools/setup-virtualenv.sh index 25373d81447b..336f4fca4982 100755 --- a/src/tools/setup-virtualenv.sh +++ b/src/tools/setup-virtualenv.sh @@ -48,8 +48,8 @@ done DIR=$1 if [ -z "$DIR" ] ; then - echo "$SCRIPTNAME: need directory path in which to create virtualenv" - exit 1 + echo "$SCRIPTNAME: need a directory path, but none was provided" + usage fi rm -fr $DIR mkdir -p $DIR -- 2.47.3