Changeset - 9e12d3d273a4
[Not reviewed]
default
0 1 0
Dennis Fink - 7 years ago 2013-03-08 18:37:08
the_metalgamer@hackerspace.lu
removed unnessacary lines in check_version
1 file changed with 4 insertions and 7 deletions:
yaah
4
7
0 comments (0 inline, 0 general)
yaah
Show inline comments
...
 
@@ -207,14 +207,11 @@ search() {
 
check_version () {
 

	
 
    if [[ $# -eq 3 ]]; then
 
        local name=$1
 
        local oldversion=$2
 
        local newversion=$3
 

	
 
        msg "Checking version for '$1'"
 

	
 
        msg "Checking version for '$name'"
 

	
 
        if [[ $(vercmp $oldversion $newversion) -eq -1 ]]; then
 
            msg2 "New version for '$name': $oldversion -> $newversion"
 
        if [[ $(vercmp $2 $3) -eq -1 ]]; then
 
            msg2 "New version for '$1': $2 -> $3"
 
        fi
 
    else
 
        error "Not enough parameters supplied"
0 comments (0 inline, 0 general)