Răsfoiți Sursa

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

LuciferDono 6 luni în urmă
părinte
comite
acd3701274
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
 done
 
 
 # Join all prompt parts with spaces
 # Join all prompt parts with spaces
-PROMPT="${PROMPT_PARTS[*]}"
+PROMPT="${PROMPT_PARTS[*]:-}"
 
 
 # Validate prompt is non-empty
 # Validate prompt is non-empty
 if [[ -z "$PROMPT" ]]; then
 if [[ -z "$PROMPT" ]]; then