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