diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-13 10:38:27 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-06-13 10:38:27 +0200 |
commit | 1c53edfb57f06786311e407b7a53a79801f58ce4 (patch) | |
tree | fe3d5aa5ebcef60d831a14b1dc247b0cb9f7bc32 /hel | |
parent | 05612189d64bbd32b313fea69a9bbc68408acf06 (diff) | |
download | nixos-1c53edfb57f06786311e407b7a53a79801f58ce4.tar nixos-1c53edfb57f06786311e407b7a53a79801f58ce4.tar.gz nixos-1c53edfb57f06786311e407b7a53a79801f58ce4.tar.bz2 nixos-1c53edfb57f06786311e407b7a53a79801f58ce4.tar.xz nixos-1c53edfb57f06786311e407b7a53a79801f58ce4.zip |
Support transfer of base64 filename
Diffstat (limited to 'hel')
-rw-r--r-- | hel/recv-media.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 23c2c89e..582a1ee3 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix | |||
@@ -30,6 +30,10 @@ writeScriptBin "recv-media" '' | |||
30 | tmpFile="''${dir}"/.tmp/$(basename "$1") | 30 | tmpFile="''${dir}"/.tmp/$(basename "$1") |
31 | target="''${dir}"/$(basename "$1") | 31 | target="''${dir}"/$(basename "$1") |
32 | 32 | ||
33 | if [[ -n "''${3}" ]]; then | ||
34 | target="''${dir}"/$(echo ''${3} | base64 -d) | ||
35 | fi | ||
36 | |||
33 | logger --id=$pid -t recv-media -p user.debug <<EOF | 37 | logger --id=$pid -t recv-media -p user.debug <<EOF |
34 | $(id) | 38 | $(id) |
35 | $(stat ''${dir}) | 39 | $(stat ''${dir}) |