manyfold.sh: better handling of xrf assets
This commit is contained in:
parent
e9b6500579
commit
916f82448b
1 changed files with 3 additions and 3 deletions
|
|
@ -239,12 +239,12 @@ get_xrfragment_assets(){
|
||||||
test -n "$NO_ASSETS" && return 0 # nothing to do here
|
test -n "$NO_ASSETS" && return 0 # nothing to do here
|
||||||
test -d /mnt/asset || {
|
test -d /mnt/asset || {
|
||||||
echocolor "fetching XR Fragments asset & templates"
|
echocolor "fetching XR Fragments asset & templates"
|
||||||
mkdir -p /mnt/asset/xrfragment /mnt/templates/xrfragment
|
mkdir -p /mnt/asset/xrfragments /mnt/templates/xrfragments
|
||||||
cd /tmp
|
cd /tmp
|
||||||
timeout 50 wget "https://codeberg.org/coderofsalvation/xrfragment/archive/main.zip"
|
timeout 50 wget "https://codeberg.org/coderofsalvation/xrfragment/archive/main.zip"
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
cp -r xrfragment/assets/library /mnt/asset/xrfragment/\#1
|
cp -r xrfragment/assets/library /mnt/asset/xrfragments/\#1
|
||||||
cp -r xrfragment/assets/template /mnt/templates/xrfragment/\#2
|
find xrfragment/assets/template -maxdepth 1 -mindepth 1 -type d | awk '{ system("cp -r "$0" /mnt/templates/xrfragments/#"(NR+1)) }'
|
||||||
}
|
}
|
||||||
add_lib_to_db /mnt/asset
|
add_lib_to_db /mnt/asset
|
||||||
add_lib_to_db /mnt/templates
|
add_lib_to_db /mnt/templates
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue