aboutsummaryrefslogtreecommitdiffstats
path: root/sbshadow
diff options
context:
space:
mode:
Diffstat (limited to 'sbshadow')
-rwxr-xr-xsbshadow8
1 files changed, 6 insertions, 2 deletions
diff --git a/sbshadow b/sbshadow
index 25cf923..7d20edd 100755
--- a/sbshadow
+++ b/sbshadow
@@ -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