Files
SpecterOps-Nemesis/scripts/submit_to_nemesis.sh
2023-12-07 18:30:22 -08:00

16 lines
437 B
Bash
Executable File

#!/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd "$SCRIPT_DIR/../cmd/enrichment" > /dev/null
# Check if the virtualenv exists and install poetry packages if not
if [ ! -d ".venv" ]; then
poetry install
fi
popd > /dev/null
# run the program, passing in arguments passed to the script
poetry run -C "${SCRIPT_DIR}/../cmd/enrichment" python -m enrichment.cli.submit_to_nemesis "$@"