From 9da4a11d0f36727a966cc9ec2025ccd641abfb11 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Thu, 28 Sep 2023 18:27:12 -0400 Subject: tools: Trim leading spaces from metadata Signed-off-by: sigsegv7 --- tools/meta-rip | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') 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" -- cgit v1.2.3