Skip to content

Commit

Permalink
Fix fomart according with -u for unbound variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
enxebre committed Jul 13, 2015
1 parent bdd854e commit 648dee2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bootstrap/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ verify_prereqs() {

check_terraform_version() {
local IFS='.'
if [ -z "$2" ]; then
local current_version_string=$(terraform --version | awk 'NR==1 {print $2}')
else
local current_version_string="$2"
fi
local current_version_string="${2:-$( terraform --version | awk 'NR==1 {print $2}' )}"
local requirement_version_string=${1:-0.5.0}
local -a current_version=( ${current_version_string#'v'} )
local -a requirement_version=( ${requirement_version_string} )
Expand Down

0 comments on commit 648dee2

Please sign in to comment.