Core: enlève les accents dans la création de séquences
This commit is contained in:
parent
bb1bb88515
commit
88a76b2107
@ -33,7 +33,7 @@ case $selection in
|
|||||||
tribe="SNT"
|
tribe="SNT"
|
||||||
;;
|
;;
|
||||||
3 )
|
3 )
|
||||||
tribe="EnseignementsScientifique"
|
tribe="Enseignement_Scientifique"
|
||||||
;;
|
;;
|
||||||
4 )
|
4 )
|
||||||
tribe="1NSI"
|
tribe="1NSI"
|
||||||
@ -42,8 +42,8 @@ case $selection in
|
|||||||
tribe="1ST"
|
tribe="1ST"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exec 3>&1
|
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)
|
||||||
@ -94,7 +94,8 @@ case $selection in
|
|||||||
esac
|
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
|
mkdir -p $sequence_path
|
||||||
|
|
||||||
export title=$title
|
export title=$title
|
||||||
|
Loading…
Reference in New Issue
Block a user