Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit d97cf78

Browse files
author
Brett Porter
committed
escaping to reduce puppet warnings
1 parent 691d662 commit d97cf78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$actual_homedir = $homedir
2525
}
2626

27-
$majorVersion = regsubst($version, "^([0-9]+)\.([0-9]+)\.([0-9]+).*$", "\1")
27+
$majorVersion = regsubst($version, '^([0-9]+)\.([0-9]+)\.([0-9]+).*$', '\1')
2828

2929
file { "$actual_homedir/.install4j":
3030
mode => "0600",

manifests/jre.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
$groupPath = regsubst($groupId, '\.', '/', 'G')
18-
$path = regsubst($name, '^(.*)-([0-9._]+)$', "$groupPath/\1/\2/\1-\2.tar.gz")
18+
$path = regsubst($name, '^(.*)-([0-9._]+)$', "$groupPath/\\1/\\2/\\1-\\2.tar.gz")
1919
wget::authfetch { "fetch-${name}_jre":
2020
source => "${repo['url']}/${path}",
2121
destination => "$installpath_real/jres/${name}.tar.gz",

0 commit comments

Comments
 (0)