mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-25 08:56:21 +00:00
Update switch_gpu_mode_direct.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user