]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: setup-virtualenv.sh: improve error message 21002/head
authorNathan Cutler <ncutler@suse.com>
Fri, 23 Mar 2018 10:34:53 +0000 (11:34 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 23 Mar 2018 10:34:53 +0000 (11:34 +0100)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/tools/setup-virtualenv.sh

index 25373d81447b0ffca0f0899911afc8e7f8d10928..336f4fca4982163b212623bad91f58447d9774ea 100755 (executable)
@@ -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