Skip to content

Commit

Permalink
Check if $is_pe exists before using it
Browse files Browse the repository at this point in the history
$is_pe is not a standard fact, so the
current code fails with strict_variables on.
  • Loading branch information
raphink committed Feb 18, 2015
1 parent f6e9f0a commit 6a0e9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
$command = strip(regsubst("${script_command} -o \"${fragdir}/${concat_name}\" -d \"${fragdir}\" ${warnflag} ${forceflag} ${orderflag} ${newlineflag}", '\s+', ' ', 'G'))

# make sure ruby is in the path for PE
if $::is_pe {
if defined('$is_pe') and $::is_pe {
if $::kernel == 'windows' {
$command_path = "${::env_windows_installdir}/bin:${::path}"
} else {
Expand Down

0 comments on commit 6a0e9cc

Please sign in to comment.