From fd12520e701aa22d0ac29f85cdc3ae9abb704cc3 Mon Sep 17 00:00:00 2001 From: Rudy Gevaert Date: Sat, 22 Jul 2017 17:11:20 +0200 Subject: [PATCH] Puppet 5 is released. Make case statement future proof --- pre-commit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pre-commit b/pre-commit index 7a0680c..d2a9e3d 100755 --- a/pre-commit +++ b/pre-commit @@ -50,7 +50,8 @@ fi # Only puppet 3.2.1 - 3.8 support "--parser future" option. case $(puppet --version) in - 4*) USE_PUPPET_FUTURE_PARSER="disabled" ;; + 3.[2-8]*) USE_PUPPET_FUTURE_PARSER="enabled" ;; + *) USE_PUPPET_FUTURE_PARSER="disabled" ;; esac SAVEIFS=$IFS