From 6f74c90a22a36d0e8897a927bfc43b358122da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Wed, 9 Dec 2020 20:32:47 +0100 Subject: [PATCH] Allow calling install.sh in the /var/lib directory --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a78a793..704933f 100755 --- a/install.sh +++ b/install.sh @@ -11,7 +11,7 @@ set -o nounset DOTDIR="/var/lib/dotfiles" _SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] ; then +if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] && [[ "${_SCRIPT_DIR}" != "${DOTDIR}" ]] ; then if [[ -e "${DOTDIR}" ]] ; then 2>&1 printf "${DOTDIR} already exists. This seems unsafe.\n" exit 1