Changeset - 9293e51444ac
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 6 years ago 2014-03-22 17:06:50
dennis.fink@c3l.lu
use %s in printf where possible
1 file changed with 5 insertions and 5 deletions:
yaah
5
5
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -112,7 +112,7 @@ msg () {
 

	
 
    if [[ $quiet -eq 0 ]]; then
 
        local mesg=$1; shift
 
        printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@"
 
        printf "${GREEN}==>${ALL_OFF}${BOLD} %s${ALL_OFF}\n" "$mesg" "$@"
 
    fi
 
}
 

	
...
 
@@ -154,7 +154,7 @@ msg_verbose2 () {
 
msg2 () {
 

	
 
    local mesg=$1; shift
 
    printf "    ${BLUE}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@"
 
    printf "    ${BLUE}==>${ALL_OFF}${BOLD} %s${ALL_OFF}\n" "$mesg" "$@"
 

	
 
}
 

	
...
 
@@ -168,7 +168,7 @@ msg2 () {
 
error() {
 

	
 
    local mesg=$1; shift
 
    printf "${RED}==> ERROR:${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
 
    printf "${RED}==> ERROR:${ALL_OFF}${BOLD} %s${ALL_OFF}\n" "$mesg" "$@" >&2
 

	
 
}
 

	
...
 
@@ -235,7 +235,7 @@ search() {
 
        else
 
            local color="${RED}"
 
        fi
 
        printf "${PURPLE}$category/${ALL_OFF}$package_name ${color}$package_version${ALL_OFF} ${BLUE}$last_modified${ALL_OFF} ${YELLOW}$num_votes${ALL_OFF} ${CYAN}$maintainer${ALL_OFF}\n$package_description\n"
 
        printf "${PURPLE}%s/${ALL_OFF}%s ${color}%s${ALL_OFF} ${BLUE}%s${ALL_OFF} ${YELLOW}%s${ALL_OFF} ${CYAN}%s${ALL_OFF}\n%s\n" "$category" "$package_name" "$package_version" "$last_modified" "$num_votes" "$maintainer" "$package_description"
 

	
 
    done
 
}
...
 
@@ -256,7 +256,7 @@ check_version () {
 

	
 
        if [[ "$parseable_flag" ]]; then
 
            if [[ $(vercmp "$2" "$3") -eq -1 ]]; then
 
                printf "$1 ${GREEN}$3${ALL_OFF}\n"
 
                printf "%s ${GREEN}%s${ALL_OFF}\n" "$1" "$3"
 
            fi
 
        else
 
            msg "Checking version for '$1'"
0 comments (0 inline, 0 general)