mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 06:42:34 +00:00
blockcheck: tolerate absense of config and config.default
This commit is contained in:
parent
68061b61ae
commit
6ac84b85fb
@ -5,7 +5,9 @@ EXEDIR="$(cd "$EXEDIR"; pwd)"
|
||||
ZAPRET_CONFIG="$EXEDIR/config"
|
||||
ZAPRET_BASE="$EXEDIR"
|
||||
|
||||
[ -f "$ZAPRET_CONFIG" ] || [ -f "${ZAPRET_CONFIG}.default" ] && cp "${ZAPRET_CONFIG}.default" "$ZAPRET_CONFIG"
|
||||
[ -f "$ZAPRET_CONFIG" ] || {
|
||||
[ -f "${ZAPRET_CONFIG}.default" ] && cp "${ZAPRET_CONFIG}.default" "$ZAPRET_CONFIG"
|
||||
}
|
||||
[ -f "$ZAPRET_CONFIG" ] && . "$ZAPRET_CONFIG"
|
||||
. "$ZAPRET_BASE/common/base.sh"
|
||||
. "$ZAPRET_BASE/common/dialog.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user