aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:04:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:42:03 +1200
commit259e0d5821255195dfc7cd415175957cf4e6b59a (patch)
tree3716bee18d09a4ffe1dcc3578163dd9e722e9ca9
parentUse consistent if/for/while block syntax (diff)
downloadpsshd-259e0d5821255195dfc7cd415175957cf4e6b59a.tar.gz
psshd-259e0d5821255195dfc7cd415175957cf4e6b59a.zip
Change text syntax for port presence
-rwxr-xr-xpsshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/psshd b/psshd
index 8ad9bff..8b4f042 100755
--- a/psshd
+++ b/psshd
@@ -48,7 +48,7 @@ done
shift "$((OPTIND-1))"
# If no port, give up with usage instructions
-if [[ ! -n "$port" ]]; then
+if ! [[ "$port" ]]; then
printf "USAGE: $0 -p <port number> -- <ssh arguments>\n"
exit 1
fi