summaryrefslogtreecommitdiff
path: root/tools/meta-rip
diff options
context:
space:
mode:
authorsigsegv7 <ian@vegaa.systems>2023-09-28 18:27:12 -0400
committersigsegv7 <ian@vegaa.systems>2023-09-28 18:27:12 -0400
commit9da4a11d0f36727a966cc9ec2025ccd641abfb11 (patch)
tree7e5ff6ee81d13cbab7324659594475543cf64939 /tools/meta-rip
parent76a6a3da6be53621d017416bfd81f1fda265ac7c (diff)
tools: Trim leading spaces from metadata
Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'tools/meta-rip')
-rwxr-xr-xtools/meta-rip6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/meta-rip b/tools/meta-rip
index 4041feb..d91195a 100755
--- a/tools/meta-rip
+++ b/tools/meta-rip
@@ -34,6 +34,12 @@ then
exit
fi
+# Trim leading spaces
+cookie=$(echo "$cookie" | sed -e 's/^[[:space:]]*//')
+filename=$(echo "$filename" | sed -e 's/^[[:space:]]*//')
+author=$(echo "$author" | sed -e 's/^[[:space:]]*//')
+description=$(echo "$description" | sed -e 's/^[[:space:]]*//')
+
echo "Cookie: $cookie"
echo "Filename: $filename"
echo "Author: $author"