fix
[distro-setup] / btrbk-run
index cec50f1cff60278ce628d7db4dc6189ed8132397..92e69679c017dd19c776160fbf7e2fc2edf638c8 100644 (file)
--- 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