diff options
| author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-30 19:57:28 +0200 |
|---|---|---|
| committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-30 19:57:28 +0200 |
| commit | f259d5a3c795bb4d99f43386bc66801facebde5b (patch) | |
| tree | b0554fd8c7415504cdd9bfbedb1ebd7efa444bbe /hel | |
| parent | 34a4e7151877c986dce294480c50c446b2a7c73a (diff) | |
| download | nixos-f259d5a3c795bb4d99f43386bc66801facebde5b.tar nixos-f259d5a3c795bb4d99f43386bc66801facebde5b.tar.gz nixos-f259d5a3c795bb4d99f43386bc66801facebde5b.tar.bz2 nixos-f259d5a3c795bb4d99f43386bc66801facebde5b.tar.xz nixos-f259d5a3c795bb4d99f43386bc66801facebde5b.zip | |
escaping
Diffstat (limited to 'hel')
| -rw-r--r-- | hel/recv-media.nix | 4 |
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 | '' |
