fix: readlink

This commit is contained in:
2024-03-14 23:22:56 +00:00
parent 2e548754ae
commit e1fb57250c

View File

@@ -20,7 +20,11 @@ if [[ -z "$SKIP_SUDO_CHECK" ]]; then
fi fi
# Set up directory variables # Set up directory variables
dir=$(dirname $(readlink "$0")) if [ -L "$0" ]; then
dir=$(dirname $(readlink -f "$0"))
else
dir=$(dirname "$0")
fi
install_dir="$dir/install.d" install_dir="$dir/install.d"
export DOTFILES=$(dirname "$dir") export DOTFILES=$(dirname "$dir")