Skip to content

Commit

Permalink
Merge pull request #762 from doc75/fix_install_warning
Browse files Browse the repository at this point in the history
prevent error message before insstalling completion file for non root user
  • Loading branch information
schollz authored Jul 28, 2024
2 parents 5da253e + 42bb64c commit 66efe74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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="${?}";;
Expand Down

0 comments on commit 66efe74

Please sign in to comment.