From 2a7badfc6fd7c4495ce0397e191ee5fd66c8a54d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 31 Mar 2025 21:00:46 +0200 Subject: Fix previous commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- ffextract-audio | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffextract-audio b/ffextract-audio index 7af0f43..2611483 100755 --- a/ffextract-audio +++ b/ffextract-audio @@ -55,7 +55,7 @@ fi getext () { probed_file="$1" - if test ! "${probed_file}" -; then + if test ! "${probed_file}" = -; then probed_file="file:${probed_file}" fi ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 -- "${probed_file}" @@ -69,7 +69,7 @@ extract () { printf '\033[1m%s\033[m\n' "Extracting audio track from ${1}" >&2 printf '\033[1m%s\033[m\n' "and storing as ${2}" >&2 in_file_prefixed="${1}" - if test ! "${in_file_prefixed}" -; then + if test ! "${in_file_prefixed}" = -; then in_file_prefixed="file:${in_file_prefixed}" fi if ffmpeg -i "${in_file_prefixed}" -vn -acodec copy ${ffmpeg_flag_y} -- "file:${2}"; then -- cgit v1.2.3-70-g09d2