From 7a1d22f60b234be0ad6bdb736a998eb6ab451cd4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 6 Jan 2023 22:40:47 -0600 Subject: Shorten 'meta' --- vienna | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vienna b/vienna index 59201df..f40f027 100755 --- a/vienna +++ b/vienna @@ -296,9 +296,7 @@ meta() { # meta FIELD [FILE] # # Metadata should exist as colon-separated data in an HTML comment at # the beginning of an input file. - field="$1" - file="${2:-$META}" - sed -n "s/^[ \t]*$field:[ \t]*//p" <"$file" + sed -n "s/^[ \t]*$1:[ \t]*//p" <"${2:-$META}" } ## Customizable bits -- cgit 1.4.1-21-gabe81