mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 11:07:44 +00:00
rebuild: warn for non-matching hostname
This commit is contained in:
parent
f3770d5ae4
commit
f36ac3ac03
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ def main --wrapped [
|
|||
...arguments # The arguments to pass to `nh {os,darwin} switch` and `nix` (separated by --).
|
||||
]: nothing -> nothing {
|
||||
let host = if ($host | is-not-empty) {
|
||||
if $host != (hostname) {
|
||||
print $"(ansi yellow_bold)warn:(ansi reset) building local configuration for hostname that does not match the local machine"
|
||||
}
|
||||
|
||||
$host
|
||||
} else if $remote {
|
||||
print $"(ansi red_bold)error:(ansi reset) hostname not specified for remote build"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue