summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2013-08-15 21:32:43 +0200
committerFlorian Bruhin <git@the-compiler.org>2013-08-15 21:32:43 +0200
commit82223ac216832a9f10dcefb685d8da72b2ac3065 (patch)
tree2fefaed1c27dab1a45414a8c006c0bbcf3c6dd88
parent5b93d3e37960e1b254e0863388dec6e9d640015d (diff)
downloaddrg2flac-82223ac216832a9f10dcefb685d8da72b2ac3065.tar.gz
drg2flac-82223ac216832a9f10dcefb685d8da72b2ac3065.zip
Correct outfile handling
-rwxr-xr-xdrg2flac.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/drg2flac.sh b/drg2flac.sh
index be18cfe..55a7b30 100755
--- a/drg2flac.sh
+++ b/drg2flac.sh
@@ -77,6 +77,7 @@ while :; do
exit 1
fi
outfile="$2"
+ force_outfile=1
shift 2
;;
-O|--options)
@@ -161,7 +162,7 @@ for infile in "$@"; do
flacargs+=("-T" "ENCODING=converted by drg2flac using flac --no-mid-side")
flacargs+=("--no-mid-side")
- [[ -z "$outfile" ]] && outfile="${infile%.*}.flac"
+ [[ -z "$force_outfile" ]] && outfile="${infile%.*}.flac"
flacargs+=("-o" "$outfile")
flacargs+=("$tmp/wav")