We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8b147 commit b3d007fCopy full SHA for b3d007f
lib/puppet/parser/functions/validate_cmd.rb
@@ -39,7 +39,7 @@ module Puppet::Parser::Functions
39
tmpfile.write(content)
40
tmpfile.close
41
42
- if checkscript.include?('%')
+ if checkscript =~ /\s%(\s|$)/
43
check_with_correct_location = checkscript.gsub(/%/,tmpfile.path)
44
else
45
check_with_correct_location = "#{checkscript} #{tmpfile.path}"
0 commit comments