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

Fails to download when the destination_directory has space character #90

@Ashokhicas

Description

@Ashokhicas

We are trying to download a file under a directory containing space character and it is failing even after escaping it with (` or ).

Resource:
download_file {'file download': {
url => 'http://test.com/file.ps1',
destination_directory => 'C:\Program Files\Test',
}

Error:
Notice: /Stage[main]/Test_module/Download_file[file download]/Exec[download-file.ps1]/returns: C:/Program : The term 'C:/Program' is not recognized as the name of a cmdlet, function, script file, or operable

Workaround:
Updating line number 102 in download_file/manifests/init.pp as below helps to circumvent this issue,
command => "& "$file_path"",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions