From f92fbfc0c73c52a3b0dc7094bc130bb771aaad53 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 2 May 2020 12:00:28 +0200 Subject: [PATCH] cutAndShrinkVideo: remove intermediate file --- cutAndShrinkVideo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cutAndShrinkVideo b/cutAndShrinkVideo index 7b28a60..bd421be 100755 --- a/cutAndShrinkVideo +++ b/cutAndShrinkVideo @@ -4,5 +4,9 @@ cutFile="$(cutVideo $1 $2 $3)" status=$? if [ $status -eq 0 ]; then - shrinkVideo "$cutFile" + echo "$(shrinkVideo $cutFile)" + status=$? + if [ $status -eq 0 ]; then + rm "$cutFile" + fi fi