File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
33if [ " $1 " = " configure" ]; then
4- update-alternatives \
5- --install /usr/bin/step step /usr/bin/step-cli 50 \
6- --slave /usr/share/bash-completion/completions/step step.bash-completion /usr/share/bash-completion/completions/step-cli
4+ if [ -f /usr/share/bash-completion/completions/step-cli ]; then
5+ update-alternatives \
6+ --install /usr/bin/step step /usr/bin/step-cli 50 \
7+ --slave /usr/share/bash-completion/completions/step step.bash-completion /usr/share/bash-completion/completions/step-cli
8+ fi
9+ if [ -f /etc/bash_completion.d/step-cli ]; then
10+ update-alternatives \
11+ --install /usr/bin/step step /usr/bin/step-cli 50 \
12+ --slave /etc/bash_completion.d/step step.bash-completion /etc/bash_completion.d/step-cli
13+ fi
714fi
You can’t perform that action at this time.
0 commit comments