From 252cd1049123f36b4f594c572e0f645c6712297a Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Thu, 28 Mar 2024 19:41:00 +0100 Subject: [PATCH] Update install script for portability. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9e92bc9..c3af461 100755 --- a/install.sh +++ b/install.sh @@ -13,8 +13,8 @@ function do_stow() { set -eo pipefail -DOTFILES_DIR="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")" -TARGET_DIR="$HOME" +DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" +TARGET_DIR="${HOME}" if ! command -v stow &> /dev/null; then echo "[!] Stow is not installed!"