removed obsolete var in gitpull() function

no need to create a var - lets just return the status var itself.
This commit is contained in:
Guenter Knauf 2010-04-12 22:57:48 +02:00
parent 32edba1999
commit f6b7471f40

View File

@ -378,17 +378,14 @@ chdir $CURLDIR;
sub gitpull() { sub gitpull() {
# update quietly to the latest git # update quietly to the latest git
if($nogitpull) { if($nogitpull) {
logit "Skipping git pull (--nogitpull)"; logit "skipping git pull (--nogitpull)";
return 1; return 1;
} }
else { else {
logit "run git pull"; logit "run git pull";
system("git pull 2>&1"); system("git pull 2>&1");
return $?;
} }
my $stat=$?;
return $stat;
} }
# Do the git thing, or not... # Do the git thing, or not...