get.sh: simplify try_copy()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-26 13:23:06 +01:00
parent 495098d6a7
commit b5867be214
+1 -2
View File
@@ -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; :
}