From 3de71541fb792adb8022a2deb6388afdc952203a Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Mon, 6 Sep 2021 15:04:10 +0200 Subject: [PATCH] Fix: Start counting at 0 --- tools/scripts/new_sequence.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/scripts/new_sequence.sh b/tools/scripts/new_sequence.sh index d2f05d7..bf2a222 100644 --- a/tools/scripts/new_sequence.sh +++ b/tools/scripts/new_sequence.sh @@ -43,7 +43,7 @@ exec 3>&1 cd $tribe existing_seq=$(ls -d */) nbr_seq=$(echo $existing_seq | wc -w) -next_seq_number=$(expr $nbr_seq + 1) +next_seq_number=$(expr $nbr_seq) title=$(dialog \ --inputbox "Séquences trouvée\n${existing_seq/ /\n} \nNom de la nouvelle sequence (n°$next_seq_number)" \