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