aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:17:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-09-14 17:45:15 +1200
commitc660998521e712122a308743011a63d29be023a3 (patch)
tree6e65122f3a91956bc265cdb10aaf7544ef55f869
parentQuoting unneeded in unary/lhs [[ (diff)
downloadpsshd-c660998521e712122a308743011a63d29be023a3.tar.gz
psshd-c660998521e712122a308743011a63d29be023a3.zip
No need to quote getopts spec
-rwxr-xr-xpsshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/psshd b/psshd
index 7f6c923..4a7e4e2 100755
--- a/psshd
+++ b/psshd
@@ -30,7 +30,7 @@ for cmd in "${cmds[@]}"; do
done
# Get port in options
-while getopts ':p:' opt; do
+while getopts :p: opt; do
case $opt in
p)
port=$OPTARG