mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
@@ -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; :
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user