diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 11:11:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 11:11:56 +0200 |
| commit | f5b14ff16f145d82507e7acdd933d9bf068f3ef7 (patch) | |
| tree | 4f6db1b25c106aa3ea93b6c9d6877379b8d42346 /sbshadow | |
| parent | e6ac42e158ed5ceee2c58eaf2f23a0ad3bb82f41 (diff) | |
| download | slackrepo_setup-f5b14ff16f145d82507e7acdd933d9bf068f3ef7.tar.gz slackrepo_setup-f5b14ff16f145d82507e7acdd933d9bf068f3ef7.zip | |
sbshadow --no: leave the hints alone
A preview ran mkhint -F all the same, so an sbpull or sbshadow preview
from sb-builder wrote hint files. --no now skips the sweep; --yes and the
interactive run still do it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sbshadow')
| -rwxr-xr-x | sbshadow | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -77,9 +77,13 @@ else fi # ── regenerate phantom-dep hintfiles (mkhint owns them) ─────────────────────── -# Always runs: a subtree pull can change REQUIRES even with nothing to shadow. +# Runs even with nothing to shadow (a subtree pull can change REQUIRES), but +# not on --no: a preview leaves the hints alone too. # mkhint reads ~/.config/mkhint/phantom-deps; missing tool = harmless skip. -if command -v mkhint >/dev/null 2>&1; then +if [[ $answer == n ]]; then + echo + echo "sbshadow: preview, phantom-dep hintfiles not regenerated." +elif command -v mkhint >/dev/null 2>&1; then echo echo "Regenerating phantom-dep hintfiles (mkhint -F)..." mkhint -F |
