Files
datastore/docs/_includes
Alexey MilovidovandClaude Opus 4.8 3a6458601a Treat directories and dangling symlinks as occupied when auto-picking the binary name
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]>
2026-06-05 13:55:02 +00:00
..