From 8d906c7cd98f9503c506994c7c653ef1d8b4950f Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Mon, 25 Apr 2016 00:03:19 +0200 Subject: SBO::Lib: change condition checks to read better --- SBO-Lib/lib/SBO/Lib.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'SBO-Lib/lib/SBO/Lib.pm') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 620dc50..efc1ff0 100644 --- 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; }; -- cgit v1.2.3