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