ajout booléen dans le switch/case
This commit is contained in:
parent
a514597e9b
commit
508e89a840
|
@ -50,12 +50,10 @@ scan ()
|
|||
*"maths"*)
|
||||
path=$( verif MATHS )
|
||||
cp $scandir$file $path
|
||||
#echo "$?"
|
||||
#echo "$path"
|
||||
pathb=$( verif BACKUP )
|
||||
mv $scandir$file $pathb
|
||||
echo "$pathb"
|
||||
echo "fichier transvasé dans MATHS"
|
||||
no_bool=1
|
||||
;;
|
||||
*"français"*)
|
||||
path=$( verif FRANCAIS )
|
||||
|
@ -63,6 +61,7 @@ scan ()
|
|||
pathb=$( verif BACKUP )
|
||||
mv $scandir$file $pathb
|
||||
echo "fichier transvasé dans FRANCAIS"
|
||||
no_bool=1
|
||||
;;
|
||||
*"poésie"*)
|
||||
path=$( verif POESIE )
|
||||
|
@ -70,6 +69,7 @@ scan ()
|
|||
pathb=$( verif BACKUP )
|
||||
mv $scandir$file $pathb
|
||||
echo "fichier transvasé dans POESIE"
|
||||
no_bool=1
|
||||
;;
|
||||
*"histoire"*)
|
||||
path=$( verif HISTOIRE )
|
||||
|
@ -77,6 +77,7 @@ scan ()
|
|||
pathb=$( verif BACKUP )
|
||||
mv $scandir$file $pathb
|
||||
echo "fichier transvasé dans HISTOIRE"
|
||||
no_bool=1
|
||||
;;
|
||||
*"ergothérapeute"*)
|
||||
path=$( verif ERGOTHÉRAPEUTE )
|
||||
|
@ -84,6 +85,7 @@ scan ()
|
|||
pathb=$( verif BACKUP )
|
||||
mv $scandir$file $pathb
|
||||
echo "fichier transvasé dans ERGOTHERAPEUTE"
|
||||
no_bool=1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue