summaryrefslogtreecommitdiffstats
path: root/bash-completion/lscpu
diff options
context:
space:
mode:
authorSami Kerola2018-04-05 21:56:53 +0200
committerKarel Zak2018-04-06 13:03:38 +0200
commitc6f0bdfecc7b1bbadc644eb8f625473c34fe7cae (patch)
tree7dc67f9ac07525943544e9a3034ea362fb992386 /bash-completion/lscpu
parentfstrim: Return EXIT_FAILURE when FTRIM ioctl fails (diff)
downloadkernel-qcow2-util-linux-c6f0bdfecc7b1bbadc644eb8f625473c34fe7cae.tar.gz
kernel-qcow2-util-linux-c6f0bdfecc7b1bbadc644eb8f625473c34fe7cae.tar.xz
kernel-qcow2-util-linux-c6f0bdfecc7b1bbadc644eb8f625473c34fe7cae.zip
bash-completion: fix few bash set -u issues
This is the same fix as in reference commit, and the same reason. Just correct few files missed earlier. Reference: abbcec4fc9c8d7fb835b4eafd1bc9d82acbf0056 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion/lscpu')
-rw-r--r--bash-completion/lscpu2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/lscpu b/bash-completion/lscpu
index d16af350f..69337acef 100644
--- a/bash-completion/lscpu
+++ b/bash-completion/lscpu
@@ -15,7 +15,7 @@ _lscpu_module()
CONFIGURED ONLINE MAXMHZ MINMHZ"
for WORD in $OPTS_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
- OPTS="$WORD $OPTS"
+ OPTS="$WORD ${OPTS:-""}"
fi
done
compopt -o nospace