diff options
author | Dennis Eriksen <d@ennis.no> | 2023-02-01 20:32:11 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-02-01 20:32:11 +0100 |
commit | 8d186d39483beff64a1c11f80c6ca5e56dd7bbc5 (patch) | |
tree | 2c5a64ace4bd8eabd4d65014c5313bd7edd76191 /run.sh | |
parent | run queue in batches (diff) | |
download | energyscripts-8d186d39483beff64a1c11f80c6ca5e56dd7bbc5.tar.gz |
moving and renaming/breaking everything
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 $? |