Skip to content

Commit 36ce36d

Browse files
committed
Add version check
1 parent c05700b commit 36ce36d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: app-deploy.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ source /usr/local/bin/.app-deploy-sources/__build_tagging.sh
2525
# Use global variables at your own risk as this can be overridden in the future.
2626
set -e
2727

28+
VERSION="2.0.0"
29+
2830
#################################
2931
# START EVERYTHING #
3032
#################################
3133

32-
if [ "$1" == '--help' ] ; then
34+
if [ "$1" == '-h' ] || [ "$1" == '--help' ] ; then
3335
__help
36+
elif [ "$1" == '-v' ] || [ "$1" == '--version' ] ; then
37+
echo "app-deploy $VERSION"
3438
elif [ "$1" == '--update' ] ; then
3539
__clear_console
3640
__script_auto_update

Diff for: sources/__help.sh

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ A group of scripts and tools designed to assist in the deployment process. This
1313
- Generate a final build tag after CI/CD deployment.
1414
1515
Parameters:
16+
-v, --version Check installed script version
17+
-h, --help Show this help and exit
1618
--update Update the script to the latest version.
1719
init Initialize the deploy-options file for the project.
1820
trigger Generate a trigger tag for starting the CI/CD flow.

0 commit comments

Comments
 (0)