From b5867be214d3f899ae1777bfe1d0b2c1d69ba6cd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 26 May 2025 13:23:06 +0100 Subject: get.sh: simplify try_copy() Signed-off-by: Leah Rowe --- include/get.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/get.sh b/include/get.sh index 6aed0a8d..b842d768 100644 --- a/include/get.sh +++ b/include/get.sh @@ -128,8 +128,7 @@ try_curl() try_copy() { - [ -L "$2" ] && printf "symlink %s (trycp %s)\n" "$2" "$*" && return 1 - [ ! -f "$2" ] && printf "%s missing (trycp %s)\n" "$2" "$*" && return 1 + e "$2" f missing && return 1; : ( x_ cp "$2" "$1" ) || return 1; : } -- cgit v1.2.1