From 42d112a020b89d2aec992f2f678edee199a29ae3 Mon Sep 17 00:00:00 2001 From: userdocs <16525024+userdocs@users.noreply.github.com> Date: Wed, 15 May 2024 11:43:25 +0100 Subject: [PATCH] Update qbittorrent-nox-static.sh --- qbittorrent-nox-static.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qbittorrent-nox-static.sh b/qbittorrent-nox-static.sh index a3ed5e48..3f3e1344 100644 --- a/qbittorrent-nox-static.sh +++ b/qbittorrent-nox-static.sh @@ -470,7 +470,13 @@ _qbittorrent_std_cons() { } _set_cxx_standard() { - [[ $(_qt_std_cons) == "yes" && $(_libtorrent_std_cons) == "yes" && $(_qbittorrent_std_cons) == "yes" ]] && qbt_standard="20" qbt_cxx_standard="c++${qbt_standard}" + if [[ $(_qt_std_cons) == "yes" && $(_libtorrent_std_cons) == "yes" && $(_qbittorrent_std_cons) == "yes" ]]; then + if [[ "${os_version_codename}" =~ ^(alpine|bookworm|jammy|noble)$ ]]; then + qbt_standard="23" qbt_cxx_standard="c++${qbt_standard}" + elif [[ "${os_version_codename}" =~ ^(bullseye|focal)$ ]]; then + qbt_standard="2a" qbt_cxx_standard="c++${qbt_standard}" + fi + fi } #######################################################################################################################################################