Use proper indexes for input arguments again

This commit is contained in:
Sem
2026-07-20 13:44:45 +02:00
parent 9f8dedf6f0
commit 1328010db8

View File

@@ -27,11 +27,11 @@ then
else else
if [ "$1" = "-l" ] if [ "$1" = "-l" ]
then then
echo "Looping through $3" echo "Looping through $2"
while read flacfile; do while read flacfile; do
echo "Processing line $flacfile" echo "Processing line $flacfile"
fix_flac_file "$flacfile" fix_flac_file "$flacfile"
done < "$3" done < "$2"
exit 0; exit 0;
else else
echo "moving to $2" echo "moving to $2"