Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

vnc-ssh: Reorganize if statement, for help output

  • Loading branch information...
commit 5e6a44f4ef692b9effd1a45bf8b38fad2d5dfe3c 1 parent 2393bdf
@tommystanton authored
Showing with 11 additions and 9 deletions.
  1. +11 −9 bin/vnc-ssh
View
20 bin/vnc-ssh
@@ -8,13 +8,15 @@ You can use an SSH tunnel (to get to 103, in this ex.) like so:
$ ssh -L 10110:192.168.1.103:22 -N remote_user@example.com
$ vnc-ssh -p 10110 remote_user@localhost
EOF
-else
- ssh -f -L 5900:localhost:5900 "$@" \
- x11vnc -safer -localhost -nopw -once \
- -nomodtweak \
- -display :0 \
- && sleep 2 \
- && vncviewer -encodings 'tight copyrect' \
- -quality 5 -compresslevel 9 \
- localhost:0
+
+ exit 1
fi
+
+ssh -f -L 5900:localhost:5900 "$@" \
+ x11vnc -safer -localhost -nopw -once \
+ -nomodtweak \
+ -display :0 \
+ && sleep 2 \
+ && vncviewer -encodings 'tight copyrect' \
+ -quality 5 -compresslevel 9 \
+ localhost:0

0 comments on commit 5e6a44f

Please sign in to comment.
Something went wrong with that request. Please try again.