sbotools2

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

commit e0a581fa19feecdacf5debc6a6a4699e0fe6be9a
parent d705028b246408929c45bfd1bccebe77cf433569
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Sat, 27 Feb 2016 13:15:24 +0100

Missed one exists()

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 @@ -116,8 +116,8 @@ our $pkg_db = '/var/log/packages'; # subroutine for throwing internal script errors sub script_error { - exists $_[0] ? warn "A fatal script error has occurred:\n$_[0]\nExiting.\n" - : warn "A fatal script error has occurred. Exiting.\n"; + @_ >= 1 ? warn "A fatal script error has occurred:\n$_[0]\nExiting.\n" + : warn "A fatal script error has occurred. Exiting.\n"; exit _ERR_SCRIPT; }