From 3500ce0058cac512e415b51fa95f87831e0933c7 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Fri, 11 Aug 2023 21:48:46 +0800 Subject: [PATCH] typo: retrive, fix err use a second level log mark --- makedeb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makedeb b/makedeb index 7e36a92..bc9fa39 100755 --- a/makedeb +++ b/makedeb @@ -53,7 +53,7 @@ function msg2 { function err { (( QUIET )) && return 0 local mesg=$1; shift - printf "${RED} ->${ALL_OFF}${BOLD}${RED} ${mesg}${ALL_OFF}\n" "$@" >&2 + printf "${RED}==>${ALL_OFF}${BOLD}${RED} ${mesg}${ALL_OFF}\n" "$@" >&2 } function get_full_version { @@ -158,7 +158,7 @@ function url_fragment { # $1 is relative path to file # $2 is url/(relative path to materials) -function retrive_source_single { +function retrieve_source_single { local file_name="$1" local url="$2" @@ -178,7 +178,7 @@ function retrive_source_single { if (( ! OVERRIDE_SOURCE )) && [[ -f "${workspace}/${file_name}" ]] ; then msg2 "${file_name} already exists, skip download" else - msg2 "retriving ${file_name} from ${url} with curl..." + msg2 "retrieving ${file_name} from ${url} with curl..." curl --location "${url}" --output "${workspace}/${file_name}" fi ;; @@ -192,7 +192,7 @@ function retrive_source_single { fi ;; *) - err "retriving url as type ${url_type} not supported" + err "retrieving url as type ${url_type} not supported" err "Aborting..." exit 1 esac @@ -335,7 +335,7 @@ function retrieve_source { file_name="${s%%::*}" url="${s##*::}" - retrive_source_single "${file_name}" "${url}" + retrieve_source_single "${file_name}" "${url}" done }