From 87afa096b48f9a9ad5831b70ed63019a950ec23b Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Sat, 24 Aug 2024 21:54:16 +0300 Subject: [PATCH] Fix select lw mirror --- lwrap/lwrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lwrap/lwrap b/lwrap/lwrap index 3e87d2e..e273843 100755 --- a/lwrap/lwrap +++ b/lwrap/lwrap @@ -445,8 +445,8 @@ set_git_lw_version() { for url in "${lwsrcusrls[@]}" do GIT_LW_VERSION="$(NO_ARIA2C=1 NO_DL_GUI=1 NO_DL_REPEAT=1 \ - try_dl "$url" /dev/stdout 2>/dev/null|get_lw_version)" && \ - return 0 + try_dl "$url" /dev/stdout 2>/dev/null|get_lw_version)" + [ -n "$GIT_LW_VERSION" ] && return 0 done return 1 }