mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
fix(install): add -p flag for absolute path
This commit is contained in:
parent
90aada5187
commit
f13eae852b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue