mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -15,10 +15,10 @@ set -e
|
||||
# Environment:
|
||||
# WGET : the wget command to call
|
||||
|
||||
verbose=
|
||||
quiet=
|
||||
while getopts "${BR_BACKEND_DL_GETOPTS}" OPT; do
|
||||
case "${OPT}" in
|
||||
q) verbose=-q;;
|
||||
q) quiet=-q;;
|
||||
o) output="${OPTARG}";;
|
||||
f) filename="${OPTARG}";;
|
||||
u) url="${OPTARG}";;
|
||||
@@ -33,6 +33,13 @@ shift $((OPTIND-1)) # Get rid of our options
|
||||
# Caller needs to single-quote its arguments to prevent them from
|
||||
# being expanded a second time (in case there are spaces in them)
|
||||
_wget() {
|
||||
if [ -z "${quiet}" ]; then
|
||||
printf '%s ' ${WGET} "${@}"; printf '\n'
|
||||
fi
|
||||
_plain_wget "$@"
|
||||
}
|
||||
# Note: please keep command below aligned with what is printed above
|
||||
_plain_wget() {
|
||||
eval ${WGET} "${@}"
|
||||
}
|
||||
|
||||
@@ -40,4 +47,4 @@ _wget() {
|
||||
# mirror
|
||||
[ -n "${encode}" ] && filename=${filename//\?/%3F}
|
||||
|
||||
_wget ${verbose} "${@}" -O "'${output}'" "'${url}/${filename}'"
|
||||
_wget ${quiet} "${@}" -O "'${output}'" "'${url}/${filename}'"
|
||||
|
||||
Reference in New Issue
Block a user