X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=btrbk-run;h=92e69679c017dd19c776160fbf7e2fc2edf638c8;hb=18add5cd24c17a314eb671714ce251c3374f7d60;hp=cec50f1cff60278ce628d7db4dc6189ed8132397;hpb=65d1dda5c1e79aa9c85a2d16bdd1a12413f163af;p=distro-setup diff --git a/btrbk-run b/btrbk-run index cec50f1..92e6967 100644 --- a/btrbk-run +++ b/btrbk-run @@ -503,14 +503,14 @@ else # This is a separate ssh because the command can fail and thatis ok. if $cron; then locked=false - if lock_info=$(timeout -s 9 6 ssh $h DISPLAY=:0 xscreensaver-command -timer); then + if lock_info=$(timeout -s 9 6 ssh $h DISPLAY=:0 xscreensaver-command -time); then if [[ $lock_info != *non-blanked* ]]; then locked=true fi else locked=true fi - if $locked; then + if ! $locked; then # Ignore this host. i sometimes use a non-main machine for # testing or web browsing, knowing that everything will be wiped # by the next backup, but I dont want it to happen as Im using