diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index 20ae57462..3e1f3d405 100755 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -230,7 +230,7 @@ detect_fs() { esac # use null device as cache file to be sure about the result # not using option '-o value' to be compatible with older version of blkid - FSTYPE=$("$BLKID" -c "$NULL" -s TYPE "$VOLUME") + FSTYPE=$("$BLKID" -c "$NULL" -s TYPE "$VOLUME" || true) test -n "$FSTYPE" || error "Cannot get FSTYPE of \"$VOLUME\"." FSTYPE=${FSTYPE##*TYPE=\"} # cut quotation marks FSTYPE=${FSTYPE%%\"*}