diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-12 18:55:47 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-12 18:55:47 +0100 |
commit | 9b6a60ce7f552eb4a208f0edb5b8fcee546804df (patch) | |
tree | e1e8a5aa7ae2d68f633eeb2d623ee61c7c8c320a | |
parent | 385dafc53c584f8b9b459cc6c95ffe5e02894efd (diff) |
test -b fix
-rw-r--r-- | src/core/libs/lib-ui-interactive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 110df43..cee03f6 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -406,7 +406,7 @@ interactive_filesystems() { fs_display=${fs//;target/} [ "$label" != no_label ] && label_display="($label)" [ "$label" = no_label ] && label_display= - if [ -b ${part/+/} ] && get_blockdevice_size ${part/+/} IEC + if [ -b "${part/+/}" ] && get_blockdevice_size ${part/+/} IEC # test -b <-- exit's 0, test -b '' exits >0. then infostring="${type},${BLOCKDEVICE_SIZE}MB${label_display}->$fs_display" # add size in MB for existing blockdevices (eg not for mapper devices that are not yet created yet) #TODO: ${BLOCKDEVICE_SIZE} is empty sometimes? else |