fix: Justfile darwin 命令改为手动指定 host 参数
This commit is contained in:
@@ -2,12 +2,10 @@
|
|||||||
default:
|
default:
|
||||||
@just --list
|
@just --list
|
||||||
|
|
||||||
# Rebuild current macOS host (auto-detect from hostname)
|
# Rebuild macOS host
|
||||||
[macos]
|
[macos]
|
||||||
darwin:
|
darwin host:
|
||||||
#!/usr/bin/env bash
|
sudo darwin-rebuild switch --flake .#{{host}}
|
||||||
attr=$(scutil --get LocalHostName | tr '[:upper:]' '[:lower:]' | sed 's/awesome-//')
|
|
||||||
sudo darwin-rebuild switch --flake .#"$attr"
|
|
||||||
|
|
||||||
# Rebuild WSL host
|
# Rebuild WSL host
|
||||||
[linux]
|
[linux]
|
||||||
|
|||||||
Reference in New Issue
Block a user