From 508e89a840d3e7da8b83279bbcb2ee59ba8ca8f5 Mon Sep 17 00:00:00 2001 From: "alexander.dales@etu.u-bordeaux.fr" Date: Mon, 4 Oct 2021 17:25:07 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20bool=C3=A9en=20dans=20le=20switch/case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script_temp.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script_temp.sh b/script_temp.sh index b62cb18..3b071f1 100755 --- a/script_temp.sh +++ b/script_temp.sh @@ -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