1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-05-29 04:40:46 +00:00

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

2
hosts
View File

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