diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:03:19 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-25 00:03:19 +0200 |
commit | 8d906c7cd98f9503c506994c7c653ef1d8b4950f (patch) | |
tree | c674a9a3c0ea3464fc614d09bbd3a9f368069482 /SBO-Lib/lib | |
parent | 4aec1750cc757be6237d54e4e6fb3789368a1d9e (diff) | |
download | sbotools2-8d906c7cd98f9503c506994c7c653ef1d8b4950f.tar.xz |
SBO::Lib: change condition checks to read better
Diffstat (limited to 'SBO-Lib/lib')
-rw-r--r-- | SBO-Lib/lib/SBO/Lib.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; |