Skip to content

Commit 745fa79

Browse files
committed
Dev: bash_completion: Enable complete 'id=' on non-interactive mode
Like 'crm configure primitive id='
1 parent 1b89f20 commit 745fa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/bash_completion.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ __crmcompadd ()
149149
for x in $1; do
150150
if [[ "$x" == "$3"* ]]; then
151151
if [[ "$x" =~ .*(=|:)$ ]];then
152-
if [[ "$x" =~ ^id=$ ]];then
152+
if [[ "$x" =~ ^id=$ ]] && [ "$x" == "$3" ];then
153153
:
154154
else
155155
COMPREPLY[i++]="$2$x"

0 commit comments

Comments
 (0)