From: Nathan Cutler Date: Fri, 23 Mar 2018 10:34:53 +0000 (+0100) Subject: tools: setup-virtualenv.sh: improve error message X-Git-Tag: v13.1.0~507^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21002%2Fhead;p=ceph.git tools: setup-virtualenv.sh: improve error message Signed-off-by: Nathan Cutler --- 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