install: check if local config is readable (not just exists)

This commit is contained in:
Fernando Schauenburg 2022-02-07 19:31:23 +01:00
parent 61f0b64b84
commit 50fdc150b8

View file

@ -4,7 +4,7 @@ set -e
DOTFILES="$(dirname "$(realpath "$0")")" DOTFILES="$(dirname "$(realpath "$0")")"
TARGET="$HOME" TARGET="$HOME"
[ -f "$DOTFILES/config.local" ] && . "$DOTFILES/config.local" [ -r "$DOTFILES/config.local" ] && . "$DOTFILES/config.local"
GIT_USER="${GIT_USER:-Fernando Schauenburg}" GIT_USER="${GIT_USER:-Fernando Schauenburg}"
GIT_EMAIL="${GIT_EMAIL:-fernando@schauenburg.me}" GIT_EMAIL="${GIT_EMAIL:-fernando@schauenburg.me}"