correction tabulation
This commit is contained in:
parent
dc935ad24b
commit
8e6ee8d5d7
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue