diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-06-28 18:27:29 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-06-28 18:27:29 +0200 |
commit | 49797afa4019597765943289c622b06173adf197 (patch) | |
tree | f0bb12cdb481a6a1e1fed308f6b5bcf5a20cde8b /hel/recv-media.nix | |
parent | 7f4568d3ba5a2b2d12fda53c3a439e40df089750 (diff) | |
download | nixos-49797afa4019597765943289c622b06173adf197.tar nixos-49797afa4019597765943289c622b06173adf197.tar.gz nixos-49797afa4019597765943289c622b06173adf197.tar.bz2 nixos-49797afa4019597765943289c622b06173adf197.tar.xz nixos-49797afa4019597765943289c622b06173adf197.zip |
allow sending modification time
Diffstat (limited to 'hel/recv-media.nix')
-rw-r--r-- | hel/recv-media.nix | 1 |
1 files changed, 1 insertions, 0 deletions
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" '' | |||
10 | dir=/var/media | 10 | dir=/var/media |
11 | 11 | ||
12 | cp -ln "$1" "''${dir}/$(basename "$1")" | 12 | cp -ln "$1" "''${dir}/$(basename "$1")" |
13 | [[ -n "$2"]] && touch -c -t "$2" "''${dir}/$(basename "$1")" | ||
13 | '' | 14 | '' |