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