commit e2aca6f7829cd7680e588a790289eee01365d42b
parent abd4367d19133bba582b1cf5bb5269743bd0a14c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 9 Jul 2020 12:45:46 +0200
Add missing assign of output file name
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.profile b/.profile
@@ -121,6 +121,7 @@ hurlo() {
else
printf '%s\n' "$@"
fi | while read -r url; do
+ out="${url##*/}"
[ -z "$out" ] && out="hurl_out"
[ -f "$out" ] && { printf 'error: %s exists\n' "$out" >&2; return 1; }
hurl "$url" > "$out"