summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-12 15:10:44 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-12 15:10:44 +0100
commit2d1d7624e9179f11c95562cd6cf74871e7bb5f3f (patch)
tree0daf97950615c4611b03350fd871707c1e330bd7 /include
parenta32374f6cc670789732628dfa003baf51374c7a2 (diff)
get.sh: add try_fetch_copy function
just a skeleton that calls the curl function Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/get.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/get.sh b/include/get.sh
index f10c8597..3ad1dcf0 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -154,6 +154,11 @@ try_fetch_git()
return 1; :
}
+try_fetch_copy()
+{
+ try_fetch_curl "$@" || return 1; :
+}
+
try_fetch_curl()
{
cached="file/$6"