Improved TagStudio.sh

"set -e" to abort on error
"cd …" to prevent creating .venv if script is launched outside git dir
"[ … ]" to skip creating venv when it already exists
This commit is contained in:
Abby 2024-05-01 22:28:10 -05:00
parent f71b947673
commit aedc5afefa
No known key found for this signature in database
GPG key ID: 9AE51D184C376F11

View file

@ -1,5 +1,7 @@
#! /usr/bin/env bash
python3 -m venv .venv
set -e
cd "$(dirname "$0")"
! [ -d .venv ] && python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python tagstudio/tag_studio.py