#!/bin/bash cutFile="$(cutVideo $1 $2 $3)" status=$? if [ $status -eq 0 ]; then echo "$(shrinkVideo $cutFile)" status=$? if [ $status -eq 0 ]; then rm "$cutFile" fi fi