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