From c58463a5d22dda442be35947bca93ee396474894 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Mon, 13 May 2024 15:41:07 -0400 Subject: [PATCH] updated justfile --- justfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/justfile b/justfile index 186f535..6755d2b 100644 --- a/justfile +++ b/justfile @@ -34,20 +34,18 @@ test TYPE="nixos" SYSTEM="desktop": # NixOS-rebuild switch short-hand up SYSTEM="desktop": + @echo "Switching to next generation" sudo nixos-rebuild switch --flake .#{{SYSTEM}} # NixOS-rebuild boot short-hand boot SYSTEM="desktop": + @echo "Switching to next generation on reboot" sudo nixos-rebuild boot --flake .#{{SYSTEM}} # Commit all changes and push to upstream gh MESSAGE: #!/usr/bin/env bash set -euo pipefail - if [ -n "{{MESSAGE}}" ]; then - git add -A - git commit -m "{{MESSAGE}}" - git push - else - echo "Error: Empty commit message" - fi + git add -A + git commit -m "{{MESSAGE}}" + git push