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

Fixed an error

Fixed an error caused by nonexistence of the directory /etc/bash_completion.d/croc
This commit is contained in:
Hinux Chau 2021-10-27 22:21:31 +08:00 committed by GitHub
parent 696479024e
commit d30433658b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -684,7 +684,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"
case "${croc_os}" in
"Linux" ) install_file_linux "${tmpdir}/${croc_bin_name}" "${prefix}/";
install_file_rcode="${?}";;