sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 8d906c7cd98f9503c506994c7c653ef1d8b4950f
parent 4aec1750cc757be6237d54e4e6fb3789368a1d9e
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Mon, 25 Apr 2016 00:03:19 +0200

SBO::Lib: change condition checks to read better

Diffstat:
MSBO-Lib/lib/SBO/Lib.pm | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm @@ -324,8 +324,8 @@ sub git_sbo_tree { if (-d "$repo_path/.git" and check_git_remote($repo_path, $url)) { chdir $repo_path; $res = eval { - die if system(qw! git fetch !) != 0; # if system() doesn't return 0, there was an error - die if system(qw! git reset --hard origin !) != 0; + die unless system(qw! git fetch !) == 0; # if system() doesn't return 0, there was an error + die unless system(qw! git reset --hard origin !) == 0; unlink "$repo_path/SLACKBUILDS.TXT"; 1; };