Silence unknown escape sequence warning.
warning: Unrecognised escape sequence '\/' in file modules/apt/manifests/ppa.pp at line 2 Was getting thrown. Using tr seems to work well here. Change-Id: I82996736ba15e9b4ff5125fad142aae1b286d395
This commit is contained in:
parent
a4764467bd
commit
24381f67ee
@ -1,5 +1,5 @@
|
||||
define apt::ppa($ensure = present) {
|
||||
$has_ppa = "/usr/bin/test -f /etc/apt/sources.list.d/`echo $name | cut -f2 -d: | sed 's/\//-/'`*list"
|
||||
$has_ppa = "/usr/bin/test -f /etc/apt/sources.list.d/`echo $name | cut -f2 -d: | tr / -`*list"
|
||||
case $ensure {
|
||||
present: {
|
||||
exec { "Add $name PPA":
|
||||
|
Loading…
Reference in New Issue
Block a user