1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2025-12-20 02:58:28 +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 CURRENT_SCHEMA=11
if [ -f "VERSIONS" ]; then if [ -f "VERSIONS" ]; then
# shellcheck disable=SC2034
while IFS='=' read -r key value; do while IFS='=' read -r key value; do
case "$key" in case "$key" in
MIN_VERSION) MIN_SCHEMA="$value" ;; MIN_VERSION) MIN_SCHEMA="$value" ;;
@@ -216,9 +217,11 @@ initialize_script() {
log "INFO" "Activating virtual environment" log "INFO" "Activating virtual environment"
if [ -f ".venv/bin/activate" ]; then if [ -f ".venv/bin/activate" ]; then
# Linux/Mac # Linux/Mac
# shellcheck disable=SC1091
source .venv/bin/activate source .venv/bin/activate
elif [ -f ".venv/Scripts/activate" ]; then elif [ -f ".venv/Scripts/activate" ]; then
# Windows # Windows
# shellcheck disable=SC1091
source .venv/Scripts/activate source .venv/Scripts/activate
fi fi
fi fi

View File

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