chore: adjust help text towards user writable folder

resolves #4479
This commit is contained in:
Jan De Dobbeleer 2023-11-22 12:07:35 +01:00 committed by Jan De Dobbeleer
parent b31f01a1a3
commit f6a5f9b5e8

View file

@ -81,7 +81,7 @@ validate_install_directory() {
# check if we can write to the install directory
if [ ! -w $install_dir ]; then
error "Cannot write to ${install_dir}. Please run the script with sudo and try again:\n curl -s https://ohmyposh.dev/install.sh | sudo bash -s\n\nAlternatively, you can set a different directory and try again: \n curl -s https://ohmyposh.dev/install.sh | bash -s -- -d {directory}"
error "Cannot write to ${install_dir}. Please set a different directory and try again: \n curl -s https://ohmyposh.dev/install.sh | bash -s -- -d {directory}"
fi
# check if the directory is in the PATH