From bddefc4778e212518526f894a877e18055d147d5 Mon Sep 17 00:00:00 2001 From: GRMrGecko Date: Wed, 24 Jan 2024 10:19:03 -0600 Subject: [PATCH] Add version print options --- mirror-sync.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mirror-sync.sh b/mirror-sync.sh index ae3a44f..164b593 100644 --- a/mirror-sync.sh +++ b/mirror-sync.sh @@ -63,7 +63,7 @@ fi # Print the help for this command. print_help() { - echo "Mirror Sync" + echo "Mirror Sync (${VERSION})" echo echo "Usage:" echo "$0 [--help|--update-support-utilities] {module} [--force]" @@ -1199,6 +1199,11 @@ while (( $# > 0 )); do -h|h|help|--help) print_help "$@" ;; + # Print version. + -v|--version) + echo "Mirror Sync (${VERSION})" + exit 0 + ;; # Default to rsync if module has no special options, otherwise if no module is found give help. *) for MODULE in ${MODULES:?}; do