removed obsolete var in gitpull() function
no need to create a var - lets just return the status var itself.
This commit is contained in:
parent
32edba1999
commit
f6b7471f40
@ -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...
|
||||||
|
Loading…
Reference in New Issue
Block a user