fine tuning

This commit is contained in:
2026-03-07 00:52:20 +00:00
parent 60230ccfec
commit 6c4595279a
5 changed files with 56 additions and 31 deletions
+8 -1
View File
@@ -13,6 +13,13 @@
set -e
# Resolve the real user's home even when running under sudo
if [[ -n "${SUDO_USER:-}" ]]; then
REAL_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6)
else
REAL_HOME="$HOME"
fi
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
@@ -72,7 +79,7 @@ if [[ "$SERVICES" == "all" ]]; then
fi
# ─── compose directory ──────────────────────────────────────────────────────
prompt_value COMPOSE_DIR "Docker Compose directory" "$HOME/.local/dockers"
prompt_value COMPOSE_DIR "Docker Compose directory" "$REAL_HOME/.local/dockers"
mkdir -p "$COMPOSE_DIR"
# ─── build compose file ─────────────────────────────────────────────────────