Added download zim files script to BigBearScripts

About

The download-zim-files script is a handy utility designed to download .zim files from any given URL. By default, it saves the downloaded files to a predefined directory. However, users can specify a custom destination directory if they prefer. This script simplifies the process of obtaining and organizing .zim files, ensuring they are readily accessible in the desired location.

How to use

Run the script with the URL of the ZIM file as the first argument, like so:


bash -c "$(wget -qLO - https://github.com/bigbeartechworld/big-bear-scripts/raw/master/download-zim-files/run.sh)" -- <url> <custom_destination_directory>

Replace <url> with the URL of the ZIM file you want to download, and <custom_destination_directory> with the path to the directory where you want to save the ZIM file.

If <custom_destination_directory> is not provided, the script will use the default destination directory /DATA/AppData/big-bear-kiwix-serve/zim.

Example:

bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/download-zim-files/run.sh)" -- https://download.kiwix.org/zim/other/termux_en_all_maxi_2022-12.zim