diff options
| author | Igor Soarez <igor@soarez.org> | 2026-09-25 12:20:13 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-09-25 12:20:13 +0300 |
| commit | ed21d1270007a8f9cbaa2ca7da0fee1eefeb405f (patch) | |
| tree | 9f71c392b5c087b55304d1bb7123d0e436c0f343 /bin/dotfiles-sync | |
| parent | 220553f1f016707a883632edb38b5e767728df97 (diff) | |
link/pi.sh: the generators move into files, and parse under bash 3.2 again
57e49dd made link/pi.sh unparseable on macOS. bash 3.2 does not skip heredoc
content when it scans for the end of a command substitution, so the three
apostrophes in a comment inside the new heredoc read as an unterminated quote
and the script stopped parsing at end of file. ./link.sh on a Mac aborted
partway: settings still generated, models.json stayed the symlink the commit
meant to replace, and everything after that point never ran. Linux was fine,
and so was every check I ran -- `bash` on a Mac with Homebrew is 5.x, which
parses it happily. Reported from the machine it broke.
Rewording the comment would fix it and leave the trap armed for the next edit,
so the two python programs move into link/pi-settings.py and link/pi-models.py
instead, called by path. The text is unchanged; there is no longer a heredoc
inside $( ) to trip over, and both files now compile-check on their own.
Verified under /bin/bash 3.2: first apply replaces both symlinks, a package
removed by hand still survives a relink, fragments merge for settings and for
models, and repeat runs report unchanged.
Diffstat (limited to 'bin/dotfiles-sync')
0 files changed, 0 insertions, 0 deletions
