From d30433658b83f7482d2a7a9c9c93a98a87b3fb8c Mon Sep 17 00:00:00 2001 From: Hinux Chau <44890821+HinWaei@users.noreply.github.com> Date: Wed, 27 Oct 2021 22:21:31 +0800 Subject: [PATCH] Fixed an error Fixed an error caused by nonexistence of the directory /etc/bash_completion.d/croc --- src/install/default.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/default.txt b/src/install/default.txt index c9d13b1b..3eaaa926 100644 --- a/src/install/default.txt +++ b/src/install/default.txt @@ -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="${?}";;