summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index 488f0cca..7f79d65a 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -14,7 +14,8 @@ writeScriptBin "recv-media" ''
14 14
15 dir=/var/media 15 dir=/var/media
16 target="''${dir}"/$(basename "$1") 16 target="''${dir}"/$(basename "$1")
17 tmpFile=$(${coreutils}/bin/mktemp --dry-run --tmpdir=${dir} .recv-media.XXXXXXXXXX)
17 18
18 cp -vn --preserve=all "$1" "''${target}" 19 ${eject}/bin/ionice -c 3 -t cp -vn --preserve=all "$1" ${tmpFile} && mv ${tmpFile} "''${target}"
19 touch -c -m -t "$2" "''${target}" 20 touch -c -m -t "$2" "''${target}"
20'' 21''