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-26 01:26:05 +0000
commita9428b65c81b23f34c08c87134cf99051c1d2d4b (patch)
tree0117c7e2578748f76376f0ef42a6ad9fe6207cee /include
parent7aadc1dda321fb567e40c8bb68bb8e7ae7b7ce30 (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";;