diff options
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -7,4 +7,13 @@ cd ${0:h} setopt all_export source .env unsetopt all_export -./venv/bin/python3 $1 || exit 1 + +if [[ -f $1 ]]; then + ./venv/bin/python3 $1 +elif [[ -f scripts/$1 ]]; then + ./venv/bin/python3 scripts/$1 +else + print -u2 "Computer says no" && exit 1 +fi + +exit $? |