Update switch_gpu_mode_direct.sh

This commit is contained in:
MacRimi
2026-04-09 20:20:46 +02:00
parent bda5fdbecd
commit 086ba9e577
+13
View File
@@ -906,8 +906,21 @@ main() {
: >"$LOG_FILE"
: >"$screen_capture"
# Debug: Show received environment variables
echo "[DEBUG] Environment variables received:"
echo "[DEBUG] GPU_SLOT='$GPU_SLOT'"
echo "[DEBUG] TARGET_MODE='$TARGET_MODE'"
echo "[DEBUG] EXECUTION_MODE='$EXECUTION_MODE'"
echo ""
parse_arguments "$@"
# Debug: Show parsed parameters
echo "[DEBUG] After parsing:"
echo "[DEBUG] PARAM_GPU_SLOT='$PARAM_GPU_SLOT'"
echo "[DEBUG] PARAM_TARGET_MODE='$PARAM_TARGET_MODE'"
echo ""
# Validate required parameters
if [[ -z "$PARAM_GPU_SLOT" ]]; then
msg_error "$(translate 'Missing required parameter'): --gpu-slot"