Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows redownload fails? #35

Closed
TrentBartlem opened this issue Nov 6, 2014 · 7 comments
Closed

Windows redownload fails? #35

TrentBartlem opened this issue Nov 6, 2014 · 7 comments

Comments

@TrentBartlem
Copy link

Could not evaluate: Could not find command 'test'

Presumably due to $unless_test in /fetch.pp ?

@HeikkiHarkonen
Copy link

Using this simple manifest fails on Windows Server 2012 R2 with:
Could not evaluate: Could not find command 'test'

class wintest {
include wget
wget::fetch{'file':
source => 'http://fileserver/file',
destination => 'C:/file',
}
}

There is not "test" binary on Windows as on Unixes/Mac where the module works great. Am I missing something?

/Heikki

@TrentBartlem
Copy link
Author

That's correct. It seems that Windows support has broken due to this.

@carlossg
Copy link
Member

Can you try the issue-35 branch to see if that solves your problem?

@HeikkiHarkonen
Copy link

Hi, tried it and gives the same exact error. I deleted the module, and downloaded the issue-35 branch and install with: puppet module install puppet-issue35.tar.gz restarted apache and retried.

/Heikki

@richardwadsworth
Copy link

I have the same error. it's actually this line that is failing

$unless_test = "test -s ${destination}"

@carlossg
Copy link
Member

carlossg commented May 1, 2015

so what would work in windows for the unless test? I don't have access to a windows box

  • exist ${destination}
  • cmd -D exist ${destination}
  • if exist ${destination} true else false
  • ?

@carlossg
Copy link
Member

Fixed in #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants