From 1738ba9ad385701ee777bf4ea2cc7a64bd28f615 Mon Sep 17 00:00:00 2001 From: William Melody Date: Mon, 14 May 2018 21:22:26 -0700 Subject: [PATCH] Use double square brackets for option parsing `while` test. --- hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts b/hosts index 004b37c..2201a61 100755 --- a/hosts +++ b/hosts @@ -143,7 +143,7 @@ _CMD="" _USE_DEBUG=0 _AUTO_SUDO=0 -while [ ${#} -gt 0 ] +while [[ ${#} -gt 0 ]] do __opt="${1}"