We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25743f commit 6bdd501Copy full SHA for 6bdd501
plans/util/retrieve_and_upload.pp
@@ -33,23 +33,19 @@
33
$os_string = $operating_system.first.value['osfamily']
34
35
if os_string == 'windows' {
36
-
37
$exists = run_command("[System.IO.File]::Exists('${local_path}')", 'local://localhost')
38
39
- if $exists.first['stdout'].chomp == 'false'{
+ if $exists.first['stdout'].chomp == 'false' {
40
run_task('peadm::download', 'local://localhost',
41
source => $source,
42
path => $local_path,
43
)
44
}
45
46
} else {
47
$exists = without_default_logging() || {
48
run_command("test -e '${local_path}'", 'local://localhost',
49
_catch_errors => true,
50
).ok()
51
52
53
unless $exists {
54
55
0 commit comments