chiark / gitweb /
bin/remote-slideshow: Handle the case of no arguments correctly.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 3 Oct 2021 13:49:05 +0000 (14:49 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 3 Oct 2021 14:18:21 +0000 (15:18 +0100)
D'oh!

bin/remote-slideshow

index 4a49a60eca8a0d8953e2a28a1dc4d0dc510bbc49..7b2df155f53b6358d844e3aa70ee689d393ca8f2 100755 (executable)
@@ -10,7 +10,7 @@ case $ok in
 esac
 dirs=$1 host=${2%:*} dpy=${2##*:}; shift 2
 case $#,$1 in
-  0 | 1,:slideshow)
+  0, | 1,:slideshow)
     set -- /usr/lib/xscreensaver/glslideshow -duration 60 -pan 10 \
        -xrm "'*desktopGrabber: ./getimg %s'"
      ;;