summaryrefslogtreecommitdiffstats
path: root/bash-completion/wdctl
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/wdctl')
-rw-r--r--bash-completion/wdctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/wdctl b/bash-completion/wdctl
index 811b5e3cc..f1a870ef6 100644
--- a/bash-completion/wdctl
+++ b/bash-completion/wdctl
@@ -29,7 +29,7 @@ _wdctl_module()
OUTPUT_ALL="FLAG DESCRIPTION STATUS BOOT-STATUS DEVICE"
for WORD in $OUTPUT_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
- OUTPUT="$WORD $OUTPUT"
+ OUTPUT="$WORD ${OUTPUT:-""}"
fi
done
compopt -o nospace