Disk: Show disk name when subtitle is disabled
This commit is contained in:
parent
01b3df7cd2
commit
cfdaac34f2
1 changed files with 5 additions and 1 deletions
6
neofetch
6
neofetch
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue