summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-02-21 17:44:01 +0000
committerLeah Rowe <leah@libreboot.org>2026-02-21 17:44:01 +0000
commit0f93368ea04cdc56530bb0b50bded12e823dd4b5 (patch)
tree18cd4b409f281c04e114cd90b38879a956ca7f04 /include
parent40216174307fb1989e83768d38e77c7bfb4359dc (diff)
get.sh: properly initialise _ua
it is currently only initialised inside case conditions. this is fine on most shells, but some of them can be a bit buggy here. initialise it empty and then override. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/get.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/get.sh b/include/get.sh
index 834acd08..3e25ea3f 100644
--- a/include/get.sh
+++ b/include/get.sh
@@ -272,6 +272,8 @@ try_fetch_file()
try_curl()
{
+ _ua=""
+
case "$2" in
https://www.supermicro.com/*)
_ua="curl/8.6.0";;