aboutsummaryrefslogtreecommitdiff
path: root/system/pytrash
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2021-08-01 03:44:41 -0500
committerRobby Workman <rworkman@slackbuilds.org>2021-08-01 04:20:55 -0500
commitacd695459de33dc38c7b2bbc2d2bed503df57816 (patch)
treea3e396a1c8f3c6823ba9d33994a2088c763f59b5 /system/pytrash
parent98c7fdc7b7069b356b17780542a4b659586a145b (diff)
system/pytrash: Install bash-completion file to systemwide dir
Diffstat (limited to 'system/pytrash')
-rw-r--r--system/pytrash/pytrash.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/pytrash/pytrash.SlackBuild b/system/pytrash/pytrash.SlackBuild
index 67f009f82eb9..504ff70415b6 100644
--- a/system/pytrash/pytrash.SlackBuild
+++ b/system/pytrash/pytrash.SlackBuild
@@ -84,7 +84,11 @@ mkdir -p $PKG/usr/bin
install --mode=755 src/$PRGNAM $PKG/usr/bin
cp -R etc $PKG
-chmod 755 $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh
+
+mkdir -p $PKG/usr/share/bash-completion/completions
+mv $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh \
+ $PKG/usr/share/bash-completion/completions/$PRGNAM
+rm -rf $PKG/etc/bash_completion.d
# python libs
PY3VER="$(python3 -c 'import sys; ver = sys.version_info; \