diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-04-26 19:30:38 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-04-26 19:30:38 +0100 | 
| commit | 24e488aae56a97ca8a96fa7177351478b9596001 (patch) | |
| tree | f85b8c157bb1af509c5f4ae0c2257164832c39d8 | |
| parent | 6779d3f9915bc4a080683c460c5988e8e2c50405 (diff) | |
lib.sh: move _ua to the xbmkget function
don't declare it globally, because it's only used here
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | include/lib.sh | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/include/lib.sh b/include/lib.sh index 01a78495..5e88fa54 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -4,8 +4,6 @@  # Copyright (c) 2020-2025 Leah Rowe <leah@libreboot.org>  # Copyright (c) 2025 Alper Nebi Yasak <alpernebiyasak@gmail.com> -_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0" -  cbfstool="elf/cbfstool/default/cbfstool"  rmodtool="elf/cbfstool/default/rmodtool" @@ -51,6 +49,8 @@ rmgit()  # if copying locally, it can only copy a file.  xbmkget()  { +	_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0" +  	_dlop="curl" && [ $# -gt 4 ] && _dlop="$5"  	cached="$XBMK_CACHE/file/$4"  	dl_fail="n" # 1 url, 2 url backup, 3 destination, 4 checksum | 
