Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
1214e00300
1 file changed
+13
-2
+13
-2
@@ -2,7 +2,7 @@
|
|||||||
# Rebuild nix-darwin + home-manager. Rotates stale home-manager *.backup files
|
# Rebuild nix-darwin + home-manager. Rotates stale home-manager *.backup files
|
||||||
# so a second switch never fails with "would be clobbered".
|
# so a second switch never fails with "would be clobbered".
|
||||||
# Also updates flake inputs, upgrades grok-build, installs OpenCode 1.x
|
# Also updates flake inputs, upgrades grok-build, installs OpenCode 1.x
|
||||||
# (stable CLI for free-tier), and updates no-mistakes.
|
# (stable CLI for free-tier), updates no-mistakes, and updates pi extensions.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||||
ln -sfn "$DIR" ~/.dotfiles
|
ln -sfn "$DIR" ~/.dotfiles
|
||||||
@@ -101,4 +101,15 @@ else
|
|||||||
echo "==> WARNING: flake update failed. Continuing with locked inputs."
|
echo "==> WARNING: flake update failed. Continuing with locked inputs."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp
|
sudo darwin-rebuild switch --flake ~/.dotfiles#lt-mbp
|
||||||
|
|
||||||
|
# Update installed pi packages after the switch, because the Homebrew bundle
|
||||||
|
# may have upgraded the pi binary.
|
||||||
|
echo "==> Updating pi extensions..."
|
||||||
|
if ! command -v pi >/dev/null 2>&1; then
|
||||||
|
echo "==> WARNING: pi not found. Skipping extension update."
|
||||||
|
elif pi update --extensions --no-approve 2>&1; then
|
||||||
|
echo "==> pi extension update complete"
|
||||||
|
else
|
||||||
|
echo "==> WARNING: pi extension update failed. Skipping."
|
||||||
|
fi
|
||||||
Reference in new issue
Block a user