-
Notifications
You must be signed in to change notification settings - Fork 214
Incompatible with wget from BusyBox #102
Comments
We could possibly add a check to see if the file exists initially before running |
What does the If not, checking for the file first might work yeah. |
This is from the documentation:
I think that just changing the arguments around would allow for this to work properly. I am in the midst of opening a PR for it right now. |
The |
Hm, I don't see that in the docs. Do you have a reference? I am pretty sure it downloads again but overwrites based on the quote that I posted earlier. |
|
ah, I just saw that actually. @SteveEdson What version of wget are you using? Edit: After the conversation that @sreya92 and I had, the PR that I had produced is becoming obsolete in favor of a newer flag (which is |
It's whatever the default wget is, bundled with |
We can use |
curl is quite heavy and may not be installed. But bb wget allows to pass custom headers so we can imitate it FILE=example.txt
wget --header="If-Modified-Since:$(date -R -u -r $FILE | sed 's/\UTC/GMT/')" http://example.com/$FILE
# update or not depending on status code 304 |
Trying to use this against my Alpine Linux server, but receive the following error:
It looks like alpine uses a different
wget
version, any way to detect and fix this?Thanks
The text was updated successfully, but these errors were encountered: