From 8a1a871bfc4cd943628f5699e823ac0efb362cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Thu, 29 May 2025 07:30:21 +0200 Subject: [PATCH] update display host name --- local/bin/updateall.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/local/bin/updateall.sh b/local/bin/updateall.sh index 958eb7c..4a200e3 100755 --- a/local/bin/updateall.sh +++ b/local/bin/updateall.sh @@ -207,13 +207,11 @@ current=0 for machine in "${machines[@]}"; do - ((current++)) - percent=$(( current * 100 / total )) - echo -ne "[${percent}%] $machine ($current/$total)\n" - # Vérification si le nom de machine est présent dans le fichier .config/updateall-hosts + echo -e "\n" - echo -n " >> $machine " + ((current++)) + echo -ne ">> $machine ($current/$total)\n" if grep -q "^$machine " ~/.config/updateall-hosts; then status=$(grep "^$machine " ~/.config/updateall-hosts | awk '{print $2}')