From f259d5a3c795bb4d99f43386bc66801facebde5b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 30 Sep 2016 19:57:28 +0200 Subject: escaping --- hel/recv-media.nix | 4 ++-- 1 file 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" '' dir=/var/media target="''${dir}"/$(basename "$1") - tmpFile=$(${coreutils}/bin/mktemp --dry-run --tmpdir=${dir} .recv-media.XXXXXXXXXX) + tmpFile=$(${coreutils}/bin/mktemp --dry-run --tmpdir=''${dir} .recv-media.XXXXXXXXXX) - ${eject}/bin/ionice -c 3 -t cp -vn --preserve=all "$1" ${tmpFile} && mv ${tmpFile} "''${target}" + ${eject}/bin/ionice -c 3 -t cp -vn --preserve=all "$1" ''${tmpFile} && mv -v ''${tmpFile} "''${target}" touch -c -m -t "$2" "''${target}" '' -- cgit v1.2.3