Use shorthand for loops

This commit is contained in:
Roy Marples
2007-11-29 11:23:06 +00:00
parent 50161bef0e
commit 82df7e4584
8 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ need_portmap() {
local mnt opts ret IFS="
"
set -- $(fstabinfo --fstype nfs,nfs4)
for mnt in "$@"; do
for mnt; do
case ,$(fstabinfo --options "${mnt}"), in
*,noauto,*|*,nolock,*);;
*) return 0;;