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:
Monty Taylor 2012-03-25 15:32:39 -07:00
parent a4764467bd
commit 24381f67ee

View File

@ -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":