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