get.sh: remove unnecessary check in try_copy

the check for whether a file is present is unnecessary,
because the following cp command would also print the
file name if it doesn't exist, and exit with the same
non-zero status.

let cp do the work.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-09-26 00:13:17 +01:00
parent b4fbdb448d
commit 204e310f5a
-9
View File
@@ -215,15 +215,6 @@ try_curl()
try_copy()
{
if e "$2" f missing
then
# TODO: is this if statement necessary? the following
# x_ cp command would provide the same effective
# error handle, and provide equivalent feedback
return 1
fi
( x_ cp "$2" "$1" ) || return 1; :
}