mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Initial commit
This commit is contained in:
parent
3d4f12ffa6
commit
584ee2cde0
1 changed files with 21 additions and 0 deletions
21
installers/update_blocklist.sh
Executable file
21
installers/update_blocklist.sh
Executable file
|
@ -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 "$?"
|
||||
|
Loading…
Reference in a new issue