Set version to make-bootstrap-file.sh

This commit is contained in:
Jesus 2023-09-25 03:15:39 +08:00
parent 04fc009cbd
commit 30569394cf
No known key found for this signature in database
GPG Key ID: E607CE7149F4D71C

View File

@ -4,6 +4,9 @@
set -e -u -o pipefail set -e -u -o pipefail
# Set script version
SCRIPT_VERSION="v1.0.0"
# Display usage message # Display usage message
usage() { usage() {
cat <<EOF cat <<EOF
@ -59,6 +62,10 @@ while [[ $# -gt 0 ]]; do
TAR_OWNER_GROUP_ID="${2}" TAR_OWNER_GROUP_ID="${2}"
shift 2 shift 2
;; ;;
-v|--version)
echo "version: $SCRIPT_VERSION"
exit 0
;;
-h|--help) -h|--help)
usage && exit 0 usage && exit 0
;; ;;