Apply suggestions from code review

pull/93/head
IceCodeNew 2020-09-19 16:37:44 +08:00 committed by GitHub
parent 91bc5edd56
commit ad20aeacbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ check_if_running_as_root() {
fi
}
download_file() {
download_files() {
if ! curl -L -H 'Cache-Control: no-cache' -o "${dir_tmp}/${2}" "${1}/${2}"; then
echo 'error: Download failed! Please check your network or try again.'
exit 1