From 5f7cceafb30071b4356d36844a89fa2b52cdf5f3 Mon Sep 17 00:00:00 2001 From: Paul M Date: Fri, 12 Aug 2022 11:19:44 -0500 Subject: [PATCH] removed bash version --- update.bash | 22 ---------------------- update.pl | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100755 update.bash 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