tdownload: get prompted for a filename to download - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit e4297e8a0b26e183874b14c565fed4eff2d5d92a
DIR parent 7a4e11bf2c8f53fc95e80e0fd04225c920188922
HTML Author: z3bra <willyatmailoodotorg>
Date: Mon, 21 Sep 2015 23:36:32 +0200
download: get prompted for a filename to download
Diffstat:
M download | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/download b/download
t@@ -1,4 +1,5 @@
#!/bin/sh
+cd tmp
OUT="$(thinglaunch -o)"
-curl -s "$@" > $OUT
+test -z "$OUT" && curl -sLO "$@" || curl -s "$@" > $OUT