Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Fix setup.sh crash on Mac with empty gitignore array

Daniel Han6c2a5935220d
diff --git a/studio/setup.sh b/studio/setup.sh
index 3fc01feb2b8..97544737989 100755
--- a/studio/setup.sh
+++ b/studio/setup.sh
@@ -137,7 +137,7 @@ while [ "$_dir" != "/" ]; do
done
_restore_gitignores() {
- for _gi in "${_HIDDEN_GITIGNORES[@]}"; do
+ for _gi in "${_HIDDEN_GITIGNORES[@]+"${_HIDDEN_GITIGNORES[@]}"}"; do
mv "${_gi}._twbuild" "$_gi" 2>/dev/null || true
done
}