mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
refactor
This commit is contained in:
parent
635796045f
commit
b07e59d12d
@ -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.'
|
||||
;;
|
||||
*)
|
||||
|
@ -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
|
||||
|
@ -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.'
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user