From 4328dd17bfcd4c33a77c4405d52c3660a6c62bf5 Mon Sep 17 00:00:00 2001 From: nil0j Date: Fri, 27 Sep 2024 17:27:02 +0200 Subject: update --- rust/scripts/populate.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rust/scripts/populate.sh (limited to 'rust/scripts/populate.sh') diff --git a/rust/scripts/populate.sh b/rust/scripts/populate.sh new file mode 100644 index 0000000..d8ccf8d --- /dev/null +++ b/rust/scripts/populate.sh @@ -0,0 +1,13 @@ +#!/bin/bash +echo activate virtual environment? \(source ~/.venv/bin/activate\) [y/n] +read answer + +if [[ $answer == 'y' ]] then + source ~/.venv/bin/activate +fi + +python3 scripts/populate/main.py + +if [[ $answer == 'y' ]] then + deactivate +fi -- cgit v1.2.3