summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
84f092e)
Current check assumes whitespaces on either side of group name.
This patch removes that assumption
Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com>
Change-Id: I4802420530be05831b8611b812c9866055cac714
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71257
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
if [ "${ID,,}" == "ubuntu" ] && [ "$VERSION_ID" == "16.04" ]; then
libvirt_group+="d"
fi
if [ "${ID,,}" == "ubuntu" ] && [ "$VERSION_ID" == "16.04" ]; then
libvirt_group+="d"
fi
- if ! groups | grep " $libvirt_group "; then
+ if ! groups | grep "$libvirt_group"; then
echo "ERROR : $(id -nu) user doesn't belong to $libvirt_group group."
exit 1
fi
echo "ERROR : $(id -nu) user doesn't belong to $libvirt_group group."
exit 1
fi