Use double square brackets for option parsing `while` test.

This commit is contained in:
William Melody 2018-05-14 21:22:26 -07:00
parent 0c11a1939e
commit 1738ba9ad3
1 changed files with 1 additions and 1 deletions

2
hosts
View File

@ -143,7 +143,7 @@ _CMD=""
_USE_DEBUG=0
_AUTO_SUDO=0
while [ ${#} -gt 0 ]
while [[ ${#} -gt 0 ]]
do
__opt="${1}"