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.' ;; *)