Skip to content

Commit

Permalink
fix(main/pueue): typo in Bash completions dir
Browse files Browse the repository at this point in the history
- enhance(main/pueue): run `post_install` after reinstalling or upgrading with Pacman
  • Loading branch information
stevenxxiu authored Aug 12, 2024
1 parent fecafdb commit eda5cdc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/pueue/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ termux_step_make_install() {

termux_step_post_make_install() {
# Make a placeholder for shell-completions (to be filled with postinst)
mkdir -p "${TERMUX_PREFIX}"/share/bash-completions/completions
mkdir -p "${TERMUX_PREFIX}"/share/bash-completion/completions
mkdir -p "${TERMUX_PREFIX}"/share/elvish/lib
mkdir -p "${TERMUX_PREFIX}"/share/fish/vendor_completions.d
mkdir -p "${TERMUX_PREFIX}"/share/nushell/vendor/autoload
mkdir -p "${TERMUX_PREFIX}"/share/zsh/site-functions
touch "${TERMUX_PREFIX}"/share/bash-completions/completions/pueue
touch "${TERMUX_PREFIX}"/share/bash-completion/completions/pueue
touch "${TERMUX_PREFIX}"/share/elvish/lib/pueue.elv
touch "${TERMUX_PREFIX}"/share/fish/vendor_completions.d/pueue.fish
touch "${TERMUX_PREFIX}"/share/nushell/vendor/autoload/pueue.nu
Expand All @@ -45,10 +45,13 @@ termux_step_create_debscripts() {
cat <<-EOF >./postinst
#!${TERMUX_PREFIX}/bin/sh
pueue completions bash > ${TERMUX_PREFIX}/share/bash-completions/completions/pueue
pueue completions bash > ${TERMUX_PREFIX}/share/bash-completion/completions/pueue
pueue completions elvish > ${TERMUX_PREFIX}/share/elvish/lib/pueue.elv
pueue completions fish > ${TERMUX_PREFIX}/share/fish/vendor_completions.d/pueue.fish
pueue completions nushell > ${TERMUX_PREFIX}/share/nushell/vendor/autoload/pueue.nu
pueue completions zsh > ${TERMUX_PREFIX}/share/zsh/site-functions/_pueue
EOF
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ]; then
echo "post_install" > postupg
fi
}

0 comments on commit eda5cdc

Please sign in to comment.