commit 25e443f13a669fcdb19eccc489df4e54aced5b1e
parent e2aca6f7829cd7680e588a790289eee01365d42b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 9 Jul 2020 12:46:51 +0200
Do not overwrite with hurl output regardless of type
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.profile b/.profile
@@ -123,7 +123,7 @@ hurlo() {
fi | while read -r url; do
out="${url##*/}"
[ -z "$out" ] && out="hurl_out"
- [ -f "$out" ] && { printf 'error: %s exists\n' "$out" >&2; return 1; }
+ [ -e "$out" ] && { printf 'error: %s exists\n' "$out" >&2; return 1; }
hurl "$url" > "$out"
printf '%s\n' "$out"
done