From b323fe88f976fe2c5ca75fafba1e689b81e7fa3a Mon Sep 17 00:00:00 2001 From: rudson Date: Sun, 2 Dec 2007 01:10:57 +0000 Subject: bugfixes - ver CHANGELOG git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@462 04377dda-e619-0410-9926-eae83683ac58 --- trunk/lib/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trunk/lib/common.sh') diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 3db98a8..5a2cb35 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -784,7 +784,7 @@ function handle_error { $ERROR_PAR_NUMBER) eecho $error "$BASENAME: incorrect number of parameters" ;; $ERROR_COMMON_NOT_FOUND) - eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation" + eecho $error "$BASENAME: file $COMMON_SH not found. Check your $BASENAME installation" ;; # # Createpkg errors @@ -810,7 +810,7 @@ function handle_error { eecho $error "$BASENAME: unknown error or user interrupt" ;; esac - exit $1 + is_number $1 && exit $1 || exit 1 } -- cgit v1.2.3