diff options
Diffstat (limited to 'src/grub')
-rw-r--r-- | src/grub/get_title | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/grub/get_title b/src/grub/get_title new file mode 100644 index 0000000..df8772b --- /dev/null +++ b/src/grub/get_title @@ -0,0 +1,9 @@ +get_title() { + FILE="$1" + + + pup -p -f "$FILE" 'title text{}' | \ + tr -d \\n | \ + sed 's/^GNU[^:]*: //' | \ + sed 's/\"/\"\"/g' +} |