mirror of
https://github.com/curl/curl.git
synced 2026-07-23 18:37:17 +03:00
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
1 changed files with 2 additions and 5 deletions
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue