diff options
author | Louie S <louie@example.com> | 2023-09-15 09:50:45 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-15 09:50:45 -0400 |
commit | e7eda80bcdf575188ab98a4454a4515217967990 (patch) | |
tree | 97a25659832d089da8487500a35e34299a146459 /src/grub/get_title | |
parent | a1c45a5d707095f503ff94981d91bfceb26f14c4 (diff) |
Add multiboot target
Diffstat (limited to 'src/grub/get_title')
-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' +} |