Disk: Show disk name when subtitle is disabled

This commit is contained in:
Dylan Araps 2017-01-26 19:00:48 +11:00
parent 01b3df7cd2
commit cfdaac34f2

View file

@ -1748,7 +1748,11 @@ get_disk() {
esac
# Append '(disk mount point)' to the subtitle.
prin "${subtitle:+${subtitle} (${disk_sub})}" "$disk"
if [[ -z "$subtitle" ]]; then
prin "${disk_sub}" "$disk"
else
prin "${subtitle} (${disk_sub})}" "$disk"
fi
done
}