From 98919393c4e3b221d233640d49ec33d19a66bb77 Mon Sep 17 00:00:00 2001 From: desktop Date: Tue, 28 Nov 2023 15:34:56 +0300 Subject: [PATCH] transcode : return error on file exitst. --- .config/bash/module/transcode.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/bash/module/transcode.sh b/.config/bash/module/transcode.sh index 688f9a8..e7e22ef 100644 --- a/.config/bash/module/transcode.sh +++ b/.config/bash/module/transcode.sh @@ -87,13 +87,13 @@ transcode() _transcode_gz-xz() { - [[ -f "${2}" ]] && return 0 + [[ -f "${2}" ]] && return 1 pv "${1}" | gzip -d | xz -9e > "${2}" } _transcode_xz-gz() { - [[ -f "${2}" ]] && return 0 + [[ -f "${2}" ]] && return 1 pv "${1}" | xz -d | gzip -1 > "${2}" }