Skip to content

Commit

Permalink
Added needed escape characters for variables within string
Browse files Browse the repository at this point in the history
Missed one escape
  • Loading branch information
Travis Fields authored and nanliu committed Jan 17, 2014
1 parent ff4109e commit a50983b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/file.pp
Expand Up @@ -65,9 +65,9 @@
$ftp_get_passwd = $http_get_passwd
}
'powershell':{
$http_get = "powershell.exe -Command \"$wc = New-Object System.Net.WebClient; $wc.DownloadFile('${source}','${target_file}')\""
$http_get = "powershell.exe -Command \"\$wc = New-Object System.Net.WebClient;\$wc.DownloadFile('${source}','${target_file}')\""
$ftp_get = $http_get
$http_get_password = "powershell.exe -Command \"$wc = (New-Object System.Net.WebClient);$wc.Credentials = New-Object System.Net.NetworkCredential('${username}','${password}');$wc.DownloadFile(${source},${target_file})\""
$http_get_password = "powershell.exe -Command \"\$wc = (New-Object System.Net.WebClient);\$wc.Credentials = New-Object System.Net.NetworkCredential('${username}','${password}');\$wc.DownloadFile(${source},${target_file})\""
$ftp_get_password = $http_get_password
}
}
Expand Down

0 comments on commit a50983b

Please sign in to comment.