#!/bin/sh if [[ -x "$1" ]]; then $1 else echo "$1 does not exist or couldn't be executed." fi