mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
add simple check for sbopkg-renames
This commit is contained in:
parent
160ad59fad
commit
c093887f28
@ -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…
Reference in New Issue
Block a user