initial working copy

This commit is contained in:
Paul M 2022-08-11 22:08:58 -05:00
parent f4c837fd72
commit 00ffcbc05a
5 changed files with 126 additions and 0 deletions

22
update.bash Executable file
View file

@ -0,0 +1,22 @@
#!/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