Skip to content

Commit

Permalink
Update qbittorrent-nox-static.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Sep 23, 2023
1 parent 151bff4 commit f244fac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qbittorrent-nox-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ if [[ "${what_id}" =~ ^(alpine)$ ]]; then
fi

## Check against allowed codenames or if the codename is alpine version greater than 3.10
if [[ ! "${what_version_codename}" =~ ^(alpine|bullseye|focal|jammy)$ ]] || [[ "${what_version_codename}" =~ ^(alpine)$ && "${what_version_id//\./}" -lt "${alpline_min_version:-3100}" ]]; then
if [[ ! "${what_version_codename}" =~ ^(alpine|bullseye|bookworm|focal|jammy)$ ]] || [[ "${what_version_codename}" =~ ^(alpine)$ && "${what_version_id//\./}" -lt "${alpline_min_version:-3100}" ]]; then
printf '\n%b\n\n' " ${urc} ${cy} This is not a supported OS. There is no reason to continue.${cend}"
printf '%b\n\n' " id: ${td}${cly}${what_id}${cend} codename: ${td}${cly}${what_version_codename}${cend} version: ${td}${clr}${what_version_id}${cend}"
printf '%b\n\n' " ${uyc} ${td}These are the supported platforms${cend}"
printf '%b\n' " ${clm}Debian${cend} - ${clb}bullseye${cend}"
printf '%b\n' " ${clm}Debian${cend} - ${clb}bullseye${cend} - ${clb}bookworm${cend}"
printf '%b\n' " ${clm}Ubuntu${cend} - ${clb}focal${cend} - ${clb}jammy${cend}"
printf '%b\n\n' " ${clm}Alpine${cend} - ${clb}3.10.0${cend} or greater"
exit 1
Expand Down Expand Up @@ -706,8 +706,8 @@ _set_module_urls() {
declare -gA github_tag
if [[ "${what_id}" =~ ^(debian|ubuntu)$ ]]; then
github_tag[cmake_ninja]="$(_git_git ls-remote -q -t --refs "${github_url[cmake_ninja]}" | awk '{sub("refs/tags/", ""); print $2 }' | awk '!/^$/' | sort -rV | head -n 1)"
if [[ "${what_version_codename}" =~ ^(jammy)$ ]]; then
github_tag[glibc]="glibc-2.37"
if [[ "${what_version_codename}" =~ ^(jammy|bookworm)$ ]]; then
github_tag[glibc]="glibc-2.38"
else # "$(_git_git ls-remote -q -t --refs https://sourceware.org/git/glibc.git | awk '/\/tags\/glibc-[0-9]\.[0-9]{2}$/{sub("refs/tags/", "");sub("(.*)(-[^0-9].*)(.*)", ""); print $2 }' | awk '!/^$/' | sort -rV | head -n 1)"
github_tag[glibc]="glibc-2.31"
fi
Expand Down

0 comments on commit f244fac

Please sign in to comment.