From 1ee4900d4529746abfdc4a500dabc0d8d07c7c76 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 10 Oct 2022 06:58:35 -0600 Subject: [PATCH] fmt: fmt more things --- deploy | 2 +- fmt | 2 ++ mkboot | 24 ++++++++++++------------ 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/deploy b/deploy index 92df448..359bfc7 100755 --- a/deploy +++ b/deploy @@ -45,7 +45,7 @@ if [ "$1" = "status" ]; then remote_rev=$(echo $host_data | jq -r .configurationRevision) remote_ver=$(echo $host_data | jq -r .nixosVersion) rev_msg="DIRTY" - rev_status="✓"; + rev_status="✓" if [ "$remote_rev" != "DIRTY" ]; then rev_msg=$(git log --format=%B -n1 $remote_rev | head -n1) if [ "${remote_rev}" != "${rev}" ]; then diff --git a/fmt b/fmt index a2a5007..c64ce2b 100755 --- a/fmt +++ b/fmt @@ -2,4 +2,6 @@ find . -name \*.nix -exec nix fmt {} \+ find . -name \*.sh -exec shfmt -w {} \+ +shfmt -w deploy +shfmt -w mkboot statix check . diff --git a/mkboot b/mkboot index 8b6e969..2c4056d 100755 --- a/mkboot +++ b/mkboot @@ -1,16 +1,16 @@ #!/usr/bin/env sh - case $1 in - weather) - nix build .#nixosConfigurations.weatherInstall.config.system.build.sdImage - ;; - haas) - nix build .#nixosConfigurations.hassInstall.config.system.build.isoImage - ;; - iso) - nix build .#nixosConfigurations.isoInstall.config.system.build.isoImage - ;; - *) - echo "Usage: boot [iso|weather|hass]" +weather) + nix build .#nixosConfigurations.weatherInstall.config.system.build.sdImage + ;; +haas) + nix build .#nixosConfigurations.hassInstall.config.system.build.isoImage + ;; +iso) + nix build .#nixosConfigurations.isoInstall.config.system.build.isoImage + ;; +*) + echo "Usage: boot [iso|weather|hass]" + ;; esac