summaryrefslogtreecommitdiff
path: root/src/multiboot2/get_title
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-15 10:03:05 -0400
committerLouie S <louie@example.com>2023-09-15 10:03:05 -0400
commit8b24f247ba26e77623a3d3d183b12b8eec849b8d (patch)
tree5827f3a477de307e4a43b56da75fa5046de9d6bc /src/multiboot2/get_title
parente7eda80bcdf575188ab98a4454a4515217967990 (diff)
Add multiboot2 targetHEADmaster
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'
+}