From c6f0bdfecc7b1bbadc644eb8f625473c34fe7cae Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 5 Apr 2018 20:56:53 +0100 Subject: 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 --- bash-completion/lscpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash-completion/lscpu') 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 -- cgit v1.2.3-55-g7522