fix typo `/man1}` -> `/man1`
This was causing the script to always use sudo privilages if `/man1` already exists
This commit is contained in:
parent
68b22402c9
commit
dff0050a5e
|
|
@ -150,7 +150,7 @@ main() {
|
||||||
|
|
||||||
# After this point, $sudo is used for _bin_dir instead of _bin_dir
|
# 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
|
{ ! [ -d "${_man_dir}/man1" ] && test_writeable "${_man_dir}"; }; then
|
||||||
log "Installing zoxide man pages, please wait…"
|
log "Installing zoxide man pages, please wait…"
|
||||||
_sudo=""
|
_sudo=""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue