1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2025-12-19 18:48:24 +00:00

Fixed: shellcheck warnings for venv sourcing and unused variables

This commit is contained in:
ServarrAdmin
2025-08-15 23:20:20 -05:00
committed by bakerboy448
parent 48a426ab61
commit b6ffad5692
2 changed files with 5 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ load_versions() {
CURRENT_SCHEMA=11
if [ -f "VERSIONS" ]; then
# shellcheck disable=SC2034
while IFS='=' read -r key value; do
case "$key" in
MIN_VERSION) MIN_SCHEMA="$value" ;;
@@ -216,9 +217,11 @@ initialize_script() {
log "INFO" "Activating virtual environment"
if [ -f ".venv/bin/activate" ]; then
# Linux/Mac
# shellcheck disable=SC1091
source .venv/bin/activate
elif [ -f ".venv/Scripts/activate" ]; then
# Windows
# shellcheck disable=SC1091
source .venv/Scripts/activate
fi
fi

View File

@@ -20,9 +20,11 @@ if [ -d ".venv" ]; then
echo "Activating virtual environment"
if [ -f ".venv/bin/activate" ]; then
# Linux/Mac
# shellcheck disable=SC1091
source .venv/bin/activate
elif [ -f ".venv/Scripts/activate" ]; then
# Windows
# shellcheck disable=SC1091
source .venv/Scripts/activate
fi
fi