From 49797afa4019597765943289c622b06173adf197 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jun 2016 18:27:29 +0200 Subject: allow sending modification time --- hel/recv-media.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hel/recv-media.nix b/hel/recv-media.nix index eeccdfb1..ef63d7ed 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -10,4 +10,5 @@ writeScriptBin "recv-media" '' dir=/var/media cp -ln "$1" "''${dir}/$(basename "$1")" + [[ -n "$2"]] && touch -c -t "$2" "''${dir}/$(basename "$1")" '' -- cgit v1.2.3