From dff0050a5ea270988e6268f7672e6ecfbb8f11a4 Mon Sep 17 00:00:00 2001 From: aarondill Date: Wed, 5 Jul 2023 13:57:11 -0500 Subject: [PATCH] fix typo `/man1}` -> `/man1` This was causing the script to always use sudo privilages if `/man1` already exists --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8d5d194..c0c1338 100755 --- a/install.sh +++ b/install.sh @@ -150,7 +150,7 @@ main() { # After this point, $sudo is used for _bin_dir instead of _bin_dir - if { [ -d "${_man_dir}/man1" ] && test_writeable "${_man_dir}/man1}"; } || + if { [ -d "${_man_dir}/man1" ] && test_writeable "${_man_dir}/man1"; } || { ! [ -d "${_man_dir}/man1" ] && test_writeable "${_man_dir}"; }; then log "Installing zoxide man pages, please wait…" _sudo=""