fix: commit semantic repair changes
This commit is contained in:
11
build.sh
11
build.sh
@@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# [DEF:build:Module]
|
||||
# @PURPOSE: Utility script for build
|
||||
# @TIER: TRIVIAL
|
||||
# @COMPLEXITY: 1
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@@ -45,6 +49,7 @@ import base64
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
def is_valid_fernet_key(raw_value: str) -> bool:
|
||||
@@ -67,8 +72,8 @@ def generate_fernet_key() -> str:
|
||||
env_path = Path(sys.argv[1])
|
||||
env_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
existing_lines: list[str] = []
|
||||
existing_key: str | None = None
|
||||
existing_lines: List[str] = []
|
||||
existing_key: Optional[str] = None
|
||||
|
||||
if env_path.exists():
|
||||
existing_lines = env_path.read_text(encoding="utf-8").splitlines()
|
||||
@@ -117,3 +122,5 @@ echo "[2/2] Starting Docker services..."
|
||||
|
||||
echo "Done. Services are running."
|
||||
echo "Use '${COMPOSE_CMD[*]} ${COMPOSE_ARGS[*]} ps' to check status and '${COMPOSE_CMD[*]} ${COMPOSE_ARGS[*]} logs -f' to stream logs."
|
||||
|
||||
# [/DEF:build:Module]
|
||||
|
||||
Reference in New Issue
Block a user