summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/bash-completion/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bash-completion/package.py b/var/spack/repos/builtin/packages/bash-completion/package.py
index 3aff5bf426..350cd4df05 100644
--- a/var/spack/repos/builtin/packages/bash-completion/package.py
+++ b/var/spack/repos/builtin/packages/bash-completion/package.py
@@ -42,6 +42,10 @@ class BashCompletion(AutotoolsPackage):
# Other dependencies
depends_on('bash@4.1:', type='run')
+ @run_before('install')
+ def create_install_directory(self):
+ mkdirp(join_path(self.prefix.share, 'bash-completion', 'completions'))
+
@run_after('install')
def show_message_to_user(self):
prefix = self.prefix