From 42bb64c43404744c97505566b3c42a73b8b7ee19 Mon Sep 17 00:00:00 2001 From: Guillaume Virlet Date: Sat, 27 Jul 2024 10:14:14 +0200 Subject: [PATCH] prevent error message before insstalling completion file for non root user --- 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 6905f6c8..c68b50e2 100644 --- a/src/install/default.txt +++ b/src/install/default.txt @@ -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="${?}";;