mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 17:10:26 +00:00
21 lines
347 B
Bash
Executable file
21 lines
347 B
Bash
Executable file
#!/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 --no-use-server-timestamps ${update_url} -O ${destination}${file} &> /dev/null
|
|
|
|
echo "$?"
|
|
|