dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 0d428ceed7571aabe681c783d513898a4c62b735
parent 1a594cad89b5ea7a52e1c6953badee093b02096a
Author: hhvn <dev@hhvn.uk>
Date:   Tue,  3 Aug 2021 17:59:37 +0100

.s/b/netdownload: silently skip preexisting files

Diffstat:
M.scripts/bin/netdownload | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.scripts/bin/netdownload b/.scripts/bin/netdownload @@ -56,9 +56,7 @@ case "$1" in mkdir -p "$dir" file="$dir/$(echo "$uri" | sha256sum | awk '{print $1}')" - [ -f "$file" ] && - printf "ERROR: File '%s' already exits: skipping '%s'\n" "$file" "$uri" && - continue + [ -f "$file" ] && continue curlout=$(curl -o"$file" "$uri" 2>&1) curlexit=$?