From b07e59d12d45ad7c3896e913b20e3b16e577b8ec Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 23 Nov 2023 12:44:23 +0100 Subject: [PATCH] refactor --- examples/block-while-remote-file-exists.sh | 4 ++-- hosts/yodaHedgehog/configuration.nix | 2 +- hosts/yodaHedgehog/host-specific.nix | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/block-while-remote-file-exists.sh b/examples/block-while-remote-file-exists.sh index 16dff62..2a9d611 100644 --- a/examples/block-while-remote-file-exists.sh +++ b/examples/block-while-remote-file-exists.sh @@ -6,10 +6,10 @@ set -eu -o pipefail while :; do result="$(ssh yodaNas 'ls stay-alive 2>&1')" || : case "${result}" in - *"No such file or directory") + *'No such file or directory') break ;; - "stay-alive") + 'stay-alive') printf '%s\n' 'Delaying suspend due to stay-alive file.' ;; *) diff --git a/hosts/yodaHedgehog/configuration.nix b/hosts/yodaHedgehog/configuration.nix index 6c2b7cf..fff6be8 100644 --- a/hosts/yodaHedgehog/configuration.nix +++ b/hosts/yodaHedgehog/configuration.nix @@ -22,7 +22,7 @@ ../../modules/btrbk ./btrbk-config.nix ../../modules/de-p1st-monitor.nix - #../../modules/spin-down-hdd.nix + ../../modules/spin-down-hdd.nix ../../modules/btrfs-scrub.nix ../../modules/btrfs-mount-options.nix diff --git a/hosts/yodaHedgehog/host-specific.nix b/hosts/yodaHedgehog/host-specific.nix index 916c12f..83b95fe 100644 --- a/hosts/yodaHedgehog/host-specific.nix +++ b/hosts/yodaHedgehog/host-specific.nix @@ -85,10 +85,10 @@ in while :; do result="$(ssh ${backup-source} 'ls ${stay-awake-file} 2>&1')" ||: case "''${result}" in - *"No such file or directory") + *'No such file or directory') break ;; - "${stay-awake-file}") + '${stay-awake-file}') printf '%s\n' 'Delaying suspend due to ${stay-awake-file} file.' ;; *)