From 24e488aae56a97ca8a96fa7177351478b9596001 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 26 Apr 2025 19:30:38 +0100 Subject: lib.sh: move _ua to the xbmkget function don't declare it globally, because it's only used here Signed-off-by: Leah Rowe --- include/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 # Copyright (c) 2025 Alper Nebi Yasak -_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 -- cgit v1.2.1