Explorar o código

Fix empty array crash on bash 3.2 in setup-ralph-loop.sh

LuciferDono hai 6 meses
pai
achega
acd3701274
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/ralph-loop/scripts/setup-ralph-loop.sh

+ 1 - 1
plugins/ralph-loop/scripts/setup-ralph-loop.sh

@@ -110,7 +110,7 @@ HELP_EOF
 done
 
 # Join all prompt parts with spaces
-PROMPT="${PROMPT_PARTS[*]}"
+PROMPT="${PROMPT_PARTS[*]:-}"
 
 # Validate prompt is non-empty
 if [[ -z "$PROMPT" ]]; then