Fix: Start counting at 0
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bertrand Benjamin 2021-09-06 15:04:10 +02:00
parent 40b24157fd
commit 3de71541fb

View File

@ -43,7 +43,7 @@ exec 3>&1
cd $tribe cd $tribe
existing_seq=$(ls -d */) existing_seq=$(ls -d */)
nbr_seq=$(echo $existing_seq | wc -w) nbr_seq=$(echo $existing_seq | wc -w)
next_seq_number=$(expr $nbr_seq + 1) next_seq_number=$(expr $nbr_seq)
title=$(dialog \ title=$(dialog \
--inputbox "Séquences trouvée\n${existing_seq/ /\n} \nNom de la nouvelle sequence (n°$next_seq_number)" \ --inputbox "Séquences trouvée\n${existing_seq/ /\n} \nNom de la nouvelle sequence (n°$next_seq_number)" \