Skip to content

Commit

Permalink
exclude alpha versions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Oct 19, 2018
1 parent 6ed6604 commit 27d7109
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ set -e
# sudoInstall=true

scriptname=$(basename "$0")
scriptbuildnum="1.5.0"
scriptbuilddate="2018-10-18"
scriptbuildnum="1.5.1"
scriptbuilddate="2018-10-19"

# CHECK DEPENDANCIES AND SET NET RETRIEVAL TOOL
if ! unzip -h 2&> /dev/null; then
Expand Down Expand Up @@ -71,7 +71,7 @@ getLatest() {

# make sure latest version isn't beta or rc
for ver in "${LATEST_ARR[@]}"; do
if [[ ! $ver =~ beta ]] && [[ ! $ver =~ rc ]]; then
if [[ ! $ver =~ beta ]] && [[ ! $ver =~ rc ]] && [[ ! $ver =~ alpha ]]; then
LATEST="$ver"
break
fi
Expand Down

0 comments on commit 27d7109

Please sign in to comment.