mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
prevent error message before insstalling completion file for non root user
This commit is contained in:
parent
8f226f72b6
commit
42bb64c434
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ main() {
|
||||||
print_message "== Install prefix already exists. No need to create it." "info"
|
print_message "== Install prefix already exists. No need to create it." "info"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -d "/etc/bash_completion.d/croc" ] && mkdir -p "/etc/bash_completion.d/croc"
|
[ ! -d "${bash_autocomplete_prefix}/croc" ] && mkdir -p "${bash_autocomplete_prefix}/croc" >/dev/null 2>&1
|
||||||
case "${croc_os}" in
|
case "${croc_os}" in
|
||||||
"Linux" ) install_file_linux "${tmpdir}/${croc_bin_name}" "${prefix}/";
|
"Linux" ) install_file_linux "${tmpdir}/${croc_bin_name}" "${prefix}/";
|
||||||
install_file_rcode="${?}";;
|
install_file_rcode="${?}";;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue