config/.local/bin/runif

8 lines
97 B
Bash
Executable File

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