run_syntax: use PUPPET_MAJOR_VERSION
Change-Id: I7b3d170d746e90e99affa3501058f891d66d400c
This commit is contained in:
parent
2366d14fd9
commit
d38f7215c5
@ -17,8 +17,9 @@ export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
||||
source $SCRIPT_DIR/functions
|
||||
|
||||
export PUPPET_VERSION=${PUPPET_VERSION:-4}
|
||||
export PUPPET_GEM_VERSION="~> $PUPPET_VERSION"
|
||||
if [ "$PUPPET_VERSION" -lt "4" ]; then
|
||||
PUPPET_MAJOR_VERSION=`echo $PUPPET_VERSION | cut -c 1`
|
||||
export PUPPET_GEM_VERSION="~> $PUPPET_MAJOR_VERSION"
|
||||
if [ "$PUPPET_MAJOR_VERSION" -lt "4" ]; then
|
||||
export FUTURE_PARSER=${FUTURE_PARSER:-yes}
|
||||
else
|
||||
export FUTURE_PARSER=${FUTURE_PARSER:-no}
|
||||
|
Loading…
Reference in New Issue
Block a user