Skip to content

Commit

Permalink
install: fix completions installation
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Feb 15, 2024
1 parent 0c574b9 commit 5201a2d
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [ -e "${curr_dir}/distrobox-enter" ]; then
done
fi
if [ -e "completions" ]; then
for file in completions/*; do
for file in completions/bash/*; do
install -D -m 0644 -t "${completion_dest_path}" "${file}"
done
fi
Expand Down Expand Up @@ -160,8 +160,8 @@ else
install -D -m 0644 -t "${man_dest_path}" "${file}"
done
fi
if [ -e "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')/completions/" ]; then
for file in "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')"/completions/*; do
if [ -e "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')/completions/bash/" ]; then
for file in "distrobox-$(echo "${release_name}" | sed 's/.tar.gz//g')"/completions/bash/*; do
install -D -m 0644 -t "${completion_dest_path}" "${file}"
done
fi
Expand Down

0 comments on commit 5201a2d

Please sign in to comment.