From 604de244454bae91ac073360b95ac8d52e52a39c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 14 Sep 2013 17:04:05 +1200 Subject: Use consistent if/for/while block syntax --- psshd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/psshd b/psshd index 5d372c8..8ad9bff 100755 --- a/psshd +++ b/psshd @@ -30,8 +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" @@ -49,8 +48,7 @@ done shift "$((OPTIND-1))" # If no port, give up with usage instructions -if [[ ! -n "$port" ]] -then +if [[ ! -n "$port" ]]; then printf "USAGE: $0 -p -- \n" exit 1 fi -- cgit v1.2.3