1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

Merge pull request #762 from doc75/fix_install_warning

prevent error message before insstalling completion file for non root user
This commit is contained in:
Zack 2024-07-28 08:19:51 -07:00 committed by GitHub
commit 66efe74094
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -685,7 +685,7 @@ main() {
print_message "== Install prefix already exists. No need to create it." "info"
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
"Linux" ) install_file_linux "${tmpdir}/${croc_bin_name}" "${prefix}/";
install_file_rcode="${?}";;