Changeset - 52a2f5e97cf8
[Not reviewed]
default
0 1 0
Dennis Fink (metalgamer) - 5 years ago 2015-08-20 01:17:02
dennis.fink@c3l.lu
Rewrote version check function
1 file changed with 7 insertions and 7 deletions:
yaah
7
7
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -232,14 +232,14 @@ check_version () {
 
        return 1
 
    fi
 

	
 
    if [[ "$parseable_flag" ]]; then
 
        if [[ $(vercmp "$2" "$3") -eq -1 ]]; then
 
    if [[ ! "$parseable_flag" ]]; then
 
        msg "Checking version for '$1'"
 
    fi
 

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

	
 
        if [[ $(vercmp "$2" "$3") -eq -1 ]]; then
 
        else
 
            msg2 "New version for '$1': $2 -> $3"
 
        fi
 
    fi
0 comments (0 inline, 0 general)