mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 07:10:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user