diff --git a/rebuild.sh b/rebuild.sh index bc4f63d..639c31d 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -31,6 +31,24 @@ else echo "==> OpenCode 1.x already installed: $(${OPENCODE_BIN} --version)" fi +echo "==> Updating no-mistakes..." +NO_MISTAKES_BIN="$HOME/.no-mistakes/bin/no-mistakes" +if [ -x "$NO_MISTAKES_BIN" ]; then + if "$NO_MISTAKES_BIN" update 2>&1; then + echo "==> no-mistakes update complete" + else + echo "==> WARNING: no-mistakes update failed. Skipping." + fi +elif command -v no-mistakes >/dev/null 2>&1; then + if no-mistakes update 2>&1; then + echo "==> no-mistakes update complete" + else + echo "==> WARNING: no-mistakes update failed. Skipping." + fi +else + echo "==> WARNING: no-mistakes not found. Skipping update." +fi + stamp="$(date +%Y%m%d-%H%M%S)" # Paths home-manager manages via home.file (regular files become out-of-store symlinks). managed=(