diff --git a/auto_move.sh b/auto_move.sh index 442cd01..d525166 100644 --- a/auto_move.sh +++ b/auto_move.sh @@ -1,9 +1,9 @@ -DEVICE=$1 +LOC=$1 USER=$2 -7z x $1.zip -o./files/$2/ +7z x $LOC.zip -o./files/temp/$USER/ -mv ./files/$2/* /home/$2/ +mv ./files/temp/$USER/* /home/$USER/ chown -R $USER /home/$USER chgrp -R $USER /home/$USER