summaryrefslogtreecommitdiff
path: root/src/grub/get_title
blob: df8772be3ea738e3d0c85a2e5906ea478a0a634a (plain)
1
2
3
4
5
6
7
8
9
get_title() {
	FILE="$1"


	pup -p -f "$FILE" 'title text{}' | \
		tr -d \\n | \
		sed 's/^GNU[^:]*: //' | \
		sed 's/\"/\"\"/g'
}