correction tabulation

This commit is contained in:
alexander.dales@etu.u-bordeaux.fr 2021-09-26 16:21:23 +02:00
parent dc935ad24b
commit 8e6ee8d5d7

View file

@ -44,15 +44,14 @@ scan ()
#ne prends pas en compte le dossier backup
if [ $file != "BACKUP" ]; then
#liste les process de l'utilisateur puis ne garde que 2 colonne d'information relative à la commande
ps -u | tr -s " " | cut -d " " -f 11,12 | while read -r process; do
ps -u | tr -s " " | cut -d " " -f 11,12 | while read -r process; done
case $process in
*"maths"*)
echo "math"
path=$( verif MATHS )
cp $scandir$file $path
echo "$?"
echo "$path"
#echo "$?"
#echo "$path"
pathb=$( verif BACKUP )
mv $scandir$file $pathb
echo "$pathb"