diff --git a/update.bash b/update.bash deleted file mode 100755 index 8ff3aaf..0000000 --- a/update.bash +++ /dev/null @@ -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 diff --git a/update.pl b/update.pl index ac0d59e..d0c56e6 100644 --- a/update.pl +++ b/update.pl @@ -81,5 +81,6 @@ if (-e "mods"){ chk_update(); }else{ get_ready(); + # chk_update expects a hash retrived from storables so program needs to be run again after this #chk_update(); } \ No newline at end of file