From 584ee2cde0f773c8ed2de4b06f871f984a80cb4f Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 27 Mar 2020 13:25:47 +0000 Subject: [PATCH] Initial commit --- installers/update_blocklist.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 installers/update_blocklist.sh diff --git a/installers/update_blocklist.sh b/installers/update_blocklist.sh new file mode 100755 index 00000000..81e3d931 --- /dev/null +++ b/installers/update_blocklist.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# +# +# @author billz +# license: GNU General Public License v3.0 + +# Exit on error +set -o errexit +# Exit on error inside functions +set -o errtrace +# Turn on traces, disabled by default +#set -o xtrace + +update_url=$1 +file=$2 +destination=$3 + +wget -q ${update_url} -O ${destination}${file} &> /dev/null + +echo "$?" +