Skip to content

Commit 6a0e9cc

Browse files
committed
Check if $is_pe exists before using it
$is_pe is not a standard fact, so the current code fails with strict_variables on.
1 parent f6e9f0a commit 6a0e9cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
$command = strip(regsubst("${script_command} -o \"${fragdir}/${concat_name}\" -d \"${fragdir}\" ${warnflag} ${forceflag} ${orderflag} ${newlineflag}", '\s+', ' ', 'G'))
200200

201201
# make sure ruby is in the path for PE
202-
if $::is_pe {
202+
if defined('$is_pe') and $::is_pe {
203203
if $::kernel == 'windows' {
204204
$command_path = "${::env_windows_installdir}/bin:${::path}"
205205
} else {

0 commit comments

Comments
 (0)