diff --git a/tools/scripts/new_sequence.sh b/tools/scripts/new_sequence.sh index 5a66d72..06474a5 100644 --- a/tools/scripts/new_sequence.sh +++ b/tools/scripts/new_sequence.sh @@ -33,7 +33,7 @@ case $selection in tribe="SNT" ;; 3 ) - tribe="EnseignementsScientifique" + tribe="Enseignement_Scientifique" ;; 4 ) tribe="1NSI" @@ -42,8 +42,8 @@ case $selection in tribe="1ST" ;; esac - exec 3>&1 + cd $tribe existing_seq=$(ls -d */) nbr_seq=$(echo $existing_seq | wc -w) @@ -94,7 +94,8 @@ case $selection in esac -sequence_path=$tribe/$(printf "%02d" $next_seq_number)_${title// /_}/ +title_path=$(echo ${title// /_} | iconv -f utf8 -t ascii//TRANSLIT) +sequence_path=$tribe/$(printf "%02d" $next_seq_number)_${title_path}/ mkdir -p $sequence_path export title=$title