From c093887f28c2d8e9add9228c33abfe52b58bf7f6 Mon Sep 17 00:00:00 2001 From: "chess.griffin" Date: Wed, 28 Jan 2009 14:25:55 +0000 Subject: [PATCH] add simple check for sbopkg-renames --- src/usr/bin/sbopkg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index f11f3b0..76b4c57 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -64,6 +64,11 @@ config_check () { # needed variables with any value, and set them. local MISSING VAR + if [ ! -e /etc/sbopkg/sbopkg-renames ]; then + echo "$SCRIPT: No /etc/sbopkg/sbopkg-renames was found." + echo "Please correct this error and run $SCRIPT again." 1>&2 + exit 1 + fi if [[ ! -e $SBOPKG_CONF && ! -e $HOME/.sbopkg.conf ]]; then echo "$SCRIPT: No $SBOPKG_CONF or ~/.sbopkg.conf file were found." echo "Please create at least one of them and run $SCRIPT again." 1>&2