fix(install): add -p flag for absolute path

This commit is contained in:
Sarp User 2024-08-08 23:02:37 -04:00 committed by Jan De Dobbeleer
parent 90aada5187
commit f13eae852b

View file

@ -84,7 +84,7 @@ set_install_directory() {
fi
# check if $HOME/.local/bin exists and is writable
if ([ -d "$HOME/.local/bin" ] && [ -w "$HOME/.local/bin" ]) || mkdir "$HOME/.local/bin"; then
if ([ -d "$HOME/.local/bin" ] && [ -w "$HOME/.local/bin" ]) || mkdir -p "$HOME/.local/bin"; then
install_dir="$HOME/.local/bin"
return 0
fi