summaryrefslogtreecommitdiff
path: root/hel
diff options
context:
space:
mode:
Diffstat (limited to 'hel')
-rw-r--r--hel/recv-media.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index 7f79d65a..67dded55 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -14,8 +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 tmpFile=$(${coreutils}/bin/mktemp --dry-run --tmpdir=''${dir} .recv-media.XXXXXXXXXX)
18 18
19 ${eject}/bin/ionice -c 3 -t cp -vn --preserve=all "$1" ${tmpFile} && mv ${tmpFile} "''${target}" 19 ${eject}/bin/ionice -c 3 -t cp -vn --preserve=all "$1" ''${tmpFile} && mv -v ''${tmpFile} "''${target}"
20 touch -c -m -t "$2" "''${target}" 20 touch -c -m -t "$2" "''${target}"
21'' 21''