Remove v from version, fix script docs

This commit is contained in:
Twangboy 2022-12-08 14:43:50 -07:00 committed by Megan Wilhite
parent 4b209e3ee3
commit 642c1256db
2 changed files with 5 additions and 2 deletions

View file

@ -33,7 +33,7 @@ _usage() {
echo "Script to install Salt into the Python environment:"
echo ""
echo "usage: ${0}"
echo " [-h|--help] [-v|--version]"
echo " [-h|--help]"
echo ""
echo " -h, --help this message"
echo ""

View file

@ -14,7 +14,7 @@
# - Xcode
#
# Usage:
# This script can be passed 2 parameters
# This script can be passed the following parameter:
# $1 : <version> : the version name to give the package. Defaults to the
# git repo version
#
@ -54,6 +54,9 @@ else
VERSION=$1
fi
# Strip the v from the beginning
VERSION=${VERSION#"v"}
CPU_ARCH="$(uname -m)"
SRC_DIR="$(git rev-parse --show-toplevel)"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"