diff options
author | Mike Swanson <mikeonthecomputer@gmail.com> | 2014-01-19 18:04:52 -0800 |
---|---|---|
committer | Mike Swanson <mikeonthecomputer@gmail.com> | 2014-04-26 14:40:26 -0700 |
commit | 3b9be87188dc5dc1f1fcbe8e9a73d9f74546a050 (patch) | |
tree | 493b673eefc0eb3b35321796effe1fa201e263c4 | |
parent | afc97d764b5d3b6279d05fadc3e5aea593d62eaf (diff) | |
download | hib-dlagent-3b9be87188dc5dc1f1fcbe8e9a73d9f74546a050.tar.gz hib-dlagent-3b9be87188dc5dc1f1fcbe8e9a73d9f74546a050.zip |
Preserve server's modification timestamp
Uses the -R option to curl so that the saved file has the same
timestamp that the server reports, creating back-dated files based on
their release date.
-rwxr-xr-x | hib-dlagent | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hib-dlagent b/hib-dlagent index bb31a63..2d293cd 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -88,7 +88,7 @@ handle_download() { if [ $DOWNLOAD -eq 0 ]; then echo "$URL" else - curl -C - --retry 3 --retry-delay 3 -o "$SAVE_FILE" "$URL" + curl -R -C - --retry 3 --retry-delay 3 -o "$SAVE_FILE" "$URL" fi } |