diff options
Diffstat (limited to 'SBO-Lib/lib/SBO/Lib.pm')
-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; }; |