mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-07 08:46:04 +01:00
add simple check for sbopkg-renames
This commit is contained in:
parent
160ad59fad
commit
c093887f28
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue