#!/bin/bash # # flapper # PATH=/opt/flapjack/bin:$PATH if [ ! $(which flapjack) ]; then echo "Error: flapjack isn't in PATH." echo "Refusing to do anything!" exit 1 fi # Evaluate command flapjack flapper $1 RETVAL=$? exit $RETVAL