From 99178584af6138437f1c0f263ffa04f2a27626ac Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 25 Sep 2024 11:04:13 -0400 Subject: [PATCH] added update flake --- bin/skyg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/skyg b/bin/skyg index 44016f5..6cbf9f9 100755 --- a/bin/skyg +++ b/bin/skyg @@ -65,9 +65,10 @@ function run-rollback() { } function run-update() { - : Updates a single flake + : Updates a single flake and runs update : Usage: skyg update {name-of-input} nix flake lock --update-input ${1} + run-update } function run-diff() { @@ -79,8 +80,9 @@ function run-diff() { read echo -e "\t└──${NC}DONE ${BLUE_BOLD}nvd${NC}" echo -e "Running ${YELLOW_BOLD}diff${NC}" - diff --color=always -r /run/current-system result | sed "s/^/\t│ /" - echo -e "\t└──${NC}DONE ${BLUE_BOLD}diff${NC}" + diff --color=always -r /run/current-system result > result.diff + cat result.diff | sed "s/^/\t│ /" + echo -e "\t└──${NC}DONE ${BLUE_BOLD}diff${NC} @ ${pwd}/result.diff" } function run-remote-deploy() {