dotfiles/utils/.local/bin/exec-if-exists

8 lines
132 B
Bash
Executable File

#!/bin/sh
[ -r "$1" ] && exec "$@" 2>&1
# if EXISTFAIL is set, exit, otherwise sleep
[ -z "$EXISTFAIL" ] && exit 1
exec sleep 999