summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-26 13:23:06 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-26 13:23:06 +0100
commitb5867be214d3f899ae1777bfe1d0b2c1d69ba6cd (patch)
treed00d4ab4152b59ac5bc98dce1f8e9b0d8a6374dd
parent495098d6a71bc3a67a80d39a5d4fdf2d2207c782 (diff)
get.sh: simplify try_copy()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/get.sh3
1 files changed, 1 insertions, 2 deletions
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; :
}