Permalink
Browse files

autodetect: treat $(groups) as an array

  • Loading branch information...
1 parent 72272da commit 1e3e93d746852d9c2fe7fccbb352f4393598d67c @falconindy committed Jun 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 builders/autodetect
View
@@ -11,7 +11,7 @@ build() {
xargs modprobe -d "${basedir:-/}" -S "$kernver" -aR |
sort -u >>"$autodetect_cache"
- if (( UID == 0 )) || [[ $(groups) == *disk* ]]; then
+ if (( UID == 0 )) || in_array 'disk' $(groups); then
if ! findmnt -uno fstype ${basedir:-/} >>"$autodetect_cache"; then
err "failed to detect root filesystem"
fi

0 comments on commit 1e3e93d

Please sign in to comment.