Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
Add version output
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Jul 22, 2017
1 parent 1dc993f commit 6a62325
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tool
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ executionType='installation'

# Default seconds before timeout
secondsBeforeTimeout=30

# Version number
versionNumber='1.4.0'
################################################################################
# We log the date
date > ${logOutput}
Expand Down Expand Up @@ -119,6 +122,7 @@ usage()
echo " --production -p Prepare the repository for production"
echo " --timeout -t Set the default timeout in seconds (${red}${bold}Must be before ${cyan}-u${normal} ${red}${bold}or ${cyan}-i${normal})"
echo " --update -u Update the script"
echo " --version -v Show the current version of Funceble"
echo ""
}

Expand Down Expand Up @@ -748,6 +752,10 @@ while [ "$#" -gt 0 ]; do
update
shift 1
;;
-v|--version)
echo "Current Version: ${versionNumber}"
exit 1
;;
-*)
echo "Unknown option: $1" >&2
exit 1
Expand Down

0 comments on commit 6a62325

Please sign in to comment.