diff --git a/qbittorrent-nox-static.sh b/qbittorrent-nox-static.sh index a3ed5e489..3f3e1344f 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 } #######################################################################################################################################################