mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
The previous guard used `[ -f "$clickhouse" ]`, which matches only regular files. If a directory or a broken symlink already occupied the chosen path, the script kept that name and then failed in `curl -o`. Use `[ -e "$clickhouse" ] || [ -L "$clickhouse" ]` instead so any preexisting path (including dangling symlinks, which are invisible to `-e` alone) is skipped. The redundant outer `if` is dropped since the `while` already handles the no-clash case. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>