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!"