getting automove to work
This commit is contained in:
parent
3338a7d01f
commit
9152ff3e10
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@ files/Laptop/
|
|||||||
files/Desktop/
|
files/Desktop/
|
||||||
files/Laptop.zip
|
files/Laptop.zip
|
||||||
files/Desktop.zip
|
files/Desktop.zip
|
||||||
|
files/Laptop.7z
|
||||||
|
files/Desktop.7z
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
LOC=$1
|
LOC=$1
|
||||||
LOCAL_USER=$2
|
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/
|
cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user