summaryrefslogtreecommitdiffstats
path: root/bash-completion/setpriv
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/setpriv
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/setpriv')
-rw-r--r--bash-completion/setpriv2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/setpriv b/bash-completion/setpriv
index 8ab9e0722..bf4737a3a 100644
--- a/bash-completion/setpriv
+++ b/bash-completion/setpriv
@@ -38,7 +38,7 @@ _setpriv_module()
GIDS_ALL=$(getent group | awk -F: '{print $3}')
for WORD in $GIDS_ALL; do
if ! [[ $prefix == *"$WORD"* ]]; then
- GIDS="$WORD $GIDS"
+ GIDS="$WORD ${GIDS:-""}"
fi
done
compopt -o nospace