getting automove to work

This commit is contained in:
Michael Scalzetti 2022-03-25 13:48:34 -04:00
parent 3338a7d01f
commit 9152ff3e10
2 changed files with 7 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,3 +2,5 @@ files/Laptop/
files/Desktop/
files/Laptop.zip
files/Desktop.zip
files/Laptop.7z
files/Desktop.7z

View File

@ -1,7 +1,11 @@
LOC=$1
LOCAL_USER=$2
7z x $LOC -o./files/temp/$LOCAL_USER/
7z x $LOC -o./files/temp/
mv ./files/temp/Laptop ./files/temp/$LOCAL_USER/ ||\
mv ./files/temp/Desktop ./files/temp/$LOCAL_USER/
cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/