Correction sélecteur de version du script

This commit is contained in:
Siphonight 2025-07-17 17:10:54 +02:00
parent abbf0d80fb
commit dcdbf88ed7

View File

@ -6,7 +6,7 @@ identities_create() {
if [ -z "${BW_Session}" ] || [ "$(echo "${BW_Session}" | wc -c)" -lt 10 ]; then if [ -z "${BW_Session}" ] || [ "$(echo "${BW_Session}" | wc -c)" -lt 10 ]; then
Local_Version="2.0.1" Local_Version="2.0.1"
Latest_Version=$(curl https://gitea.cloudyfy.fr/Siphonight/bw-cli_autologger/src/branch/main/bw_cli_autolog.sh | grep "Version" | cut -d '"' -f 2) Latest_Version=$(curl -s "https://gitea.cloudyfy.fr/Siphonight/bw-cli_autologger/src/branch/main/bw_cli_autolog.sh" | grep -m1 "Local_Version" | cut -d ';' -f 2 | cut -d '&' -f 1)
if [ "${Local_Version}" != "${Latest_Version}" ]; then if [ "${Local_Version}" != "${Latest_Version}" ]; then
tput setaf 1 tput setaf 1
echo "Votre version de l'utilitaire n'est pas à jour." echo "Votre version de l'utilitaire n'est pas à jour."