From 204e310f5a0ff51e53bd481d6eaa135fc629618e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 26 Sep 2025 00:13:17 +0100 Subject: 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 --- include/get.sh | 9 --------- 1 file changed, 9 deletions(-) (limited to 'include') 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; : } -- cgit v1.2.1