scripts/run.sh
2020-07-04 22:35:38 +02:00

11 lines
181 B
Bash
Executable file

#!/bin/sh
SCRIPTS_DIR="$(dirname $(realpath $0))"
WORKING_DIR="$(pwd)"
SCRIPT="$1"
shift
cd $SCRIPTS_DIR
pipenv run sh -c "cd $WORKING_DIR && ${SCRIPTS_DIR}/${SCRIPT}.py \"$@\""