diff options
author | Leah Rowe <leah@libreboot.org> | 2025-09-26 00:13:17 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-09-26 00:13:17 +0100 |
commit | 204e310f5a0ff51e53bd481d6eaa135fc629618e (patch) | |
tree | dfa3bd343a7a54e3f99fd2a405a91c9b002dd901 /include/get.sh | |
parent | b4fbdb448d72845586623a8551ceec98e4fecd3c (diff) |
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>
Diffstat (limited to 'include/get.sh')
-rw-r--r-- | include/get.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/get.sh b/include/get.sh index 63380a2e..38096e8c 100644 --- a/include/get.sh +++ b/include/get.sh @@ -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; : } |