Commit f6b7471f authored by Guenter Knauf's avatar Guenter Knauf
Browse files

removed obsolete var in gitpull() function

no need to create a var - lets just return the status var itself.
parent 32edba19
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -378,17 +378,14 @@ chdir $CURLDIR;
sub gitpull() {
    # update quietly to the latest git
    if($nogitpull) {
        logit "Skipping git pull (--nogitpull)";
        logit "skipping git pull (--nogitpull)";
        return 1;
    }
    else {
        logit "run git pull";
        system("git pull 2>&1");
        return $?;
    }

    my $stat=$?;

    return $stat;
}

# Do the git thing, or not...