summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-05-16 00:39:51 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-05-16 00:39:51 +0200
commit40eb2b577993e2dc24285790da0c625704c4568d (patch)
treec8604ac723a6e3e015dc2e7107a9003fb5d9c0ba
parent1d1c213e227d73c74312511a699efe0ad1a5bcfb (diff)
downloadnixos-40eb2b577993e2dc24285790da0c625704c4568d.tar
nixos-40eb2b577993e2dc24285790da0c625704c4568d.tar.gz
nixos-40eb2b577993e2dc24285790da0c625704c4568d.tar.bz2
nixos-40eb2b577993e2dc24285790da0c625704c4568d.tar.xz
nixos-40eb2b577993e2dc24285790da0c625704c4568d.zip
arguments start at 1
-rw-r--r--hel/recv-media.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix
index 75aa7950..4ce05d44 100644
--- a/hel/recv-media.nix
+++ b/hel/recv-media.nix
@@ -13,7 +13,7 @@ writeScriptBin "recv-media" ''
13 #file2="''${dir}/.copy.$(basename "$1")" 13 #file2="''${dir}/.copy.$(basename "$1")"
14 nFile="''${dir}/$(basename "$1")" 14 nFile="''${dir}/$(basename "$1")"
15 #cat > "''${file}" 15 #cat > "''${file}"
16 if ffmpeg -v warning -i "''$0" -c copy "''${file}" 2>&1 </dev/null; then 16 if ffmpeg -v warning -i "''$1" -c copy "''${file}" 2>&1 </dev/null; then
17 mv "''${file}" "''${nFile}" 17 mv "''${file}" "''${nFile}"
18 else 18 else
19 echo "Download of ''${file} failed" 19 echo "Download of ''${file} failed"