This commit is contained in:
Tao Tien 2025-10-16 17:25:13 -07:00
parent 90d3fecdc7
commit 01abe6ae00
6 changed files with 36 additions and 11 deletions

View file

@ -10,6 +10,13 @@ def ns [...packages: string] {
# }
def rebuild [subcommand, --builders: string] {
if (
df -h | detect columns --guess | where "Mounted on" == "/" or "Mounted on" == "/boot" | get Use% | each {parse "{usage}%" | get usage | into int} | flatten | all {$in < 99}
) {
print "not enough disk space!"
return false
}
mut builders = $builders;
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
if (ping -c1 -W1 nocomputer | complete | $in.exit_code == 0) {