From afb13d9c9c7c205ecfe47bd05534e18d2e4fed60 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 3 May 2020 13:53:48 +0000 Subject: [PATCH] flac2ogg: use the correct variable in loops While there, adjust the error message to be more aligned to the rest of the scripts. --- bin/flac2ogg.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/flac2ogg.sh b/bin/flac2ogg.sh index b7f13ff..20790e1 100644 --- a/bin/flac2ogg.sh +++ b/bin/flac2ogg.sh @@ -1,6 +1,6 @@ #!/bin/sh # flac2ogg -# Written in 2019 by Lucas +# Written in 2019-2020 by Lucas # CC0 1.0 Universal/Public domain - No rights reserved # # To the extent possible under law, the author(s) have dedicated all @@ -36,7 +36,7 @@ rc=0 if [ -t 0 ]; then if [ $# -gt 0 ]; then for flac in "$@"; do - [ -f "$1" ] || err "Missing file \"$1\"." + [ -f "$flac" ] || err "$flac: not found" convert_to_ogg "$flac" || rc=$? done else @@ -47,7 +47,7 @@ if [ -t 0 ]; then fi else while read -r flac; do - [ -f "$1" ] || err "Missing file \"$1\"." + [ -f "$flac" ] || err "$flac: not found" convert_to_ogg "$flac" || rc=$? done fi