extended unpack script

This commit is contained in:
Karolina Boczoń 2020-04-03 10:14:05 +02:00
parent 36c47993ac
commit 2c62499cbb

5
backend/unpack.sh Normal file → Executable file
View File

@ -1,3 +1,6 @@
#!/bin/bash #!/bin/bash
tar -xvf backup* activities/forum_*/forum.xml for forum in $(tar --wildcards -xvf backup* activities/forum_*/forum.xml)
do
mv $forum $(echo $forum | cut -f2 -d'/')
done