summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
11f680d)
other distributions might locate mkfs.vfat in a different location
than /sbin. e.g: gentoo installs dosfstools to /usr/sbin
-MKFS_="/sbin/mkfs.$FSTYPE_"
-if [ ! -x "$MKFS_" ]; then
+MKFS_="`which mkfs.$FSTYPE_`"
+if [ $? != "0" ]; then
die "invalid filesystem type \"$FSTYPE_\"" 1
fi
die "invalid filesystem type \"$FSTYPE_\"" 1
fi