From 5e8240b29f89aa82a3d04dbd40802a0b07db3c7c Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 17 Jan 2023 21:16:37 -0500 Subject: [PATCH] fix justfile --- justfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index ef734f5..0c66291 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ OS := if "${HOME}" =~ '/U.*' { "macos" } else { - if `cat /etc/issue` =~ "Deb.*" { "debian" } else { "ubuntu" } + if `cat /etc/issue 2>/dev/null || true` =~ "Deb.*" { "debian" } else { "ubuntu" } } HOSTNAME := `hostname| sed 's/.local//'` NIXPATH := "nixpkgs=/nix/var/nix/profiles/per-user/tyrel/channels/nixpkgs:/nix/var/nix/profiles/per-user/tyrel/channels" @@ -48,7 +48,7 @@ clean: vimpacker: git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim -rebuild: git-add clean +rebuild: git-add just rebuild-{{OS}} rebuild-macos: @@ -57,7 +57,9 @@ rebuild-macos: rebuild-ubuntu: NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}} + just clean rebuild-debian: NIX_PATH={{NIXPATH}} nix run ./hosts/{{HOSTNAME}} switch -vv NIX_PATH={{NIXPATH}} home-manager switch --flake ./hosts/{{HOSTNAME}} + just clean