removed bash version
This commit is contained in:
parent
48f1a0f6fd
commit
5f7cceafb3
2 changed files with 1 additions and 22 deletions
22
update.bash
22
update.bash
|
@ -1,22 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
updfile=index.json # name of file to save list of packages as
|
|
||||||
updlsturl=https://content.minetest.net/api/packages/ # give use a json file of everything available
|
|
||||||
|
|
||||||
function get_updfile () {
|
|
||||||
wget -O $updfile $updlsturl
|
|
||||||
}
|
|
||||||
|
|
||||||
function check_mods () {
|
|
||||||
# we check the mods folder to see whats there then
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ -f "$updfile" ]]
|
|
||||||
then
|
|
||||||
# if the file is there move on unless the script is asked to update it
|
|
||||||
echo "Located packages file, using"
|
|
||||||
else
|
|
||||||
echo "File not found, fetching ..."
|
|
||||||
get_updfile
|
|
||||||
fi
|
|
|
@ -81,5 +81,6 @@ if (-e "mods"){
|
||||||
chk_update();
|
chk_update();
|
||||||
}else{
|
}else{
|
||||||
get_ready();
|
get_ready();
|
||||||
|
# chk_update expects a hash retrived from storables so program needs to be run again after this
|
||||||
#chk_update();
|
#chk_update();
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue