From d45360db62cd9595a44e7d67dd00785a5d589eca Mon Sep 17 00:00:00 2001 From: Wang Long Date: Sat, 26 Mar 2016 15:28:04 +0800 Subject: [PATCH] Fix lay-down-os shell error the current code for lay-down-os will cause the following error when install rancheros to disk. ``` -bash: [: missing `]' ``` Signed-off-by: Wang Long --- scripts/installer/lay-down-os | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/installer/lay-down-os b/scripts/installer/lay-down-os index b6a80a8c..9bd0f4cb 100755 --- a/scripts/installer/lay-down-os +++ b/scripts/installer/lay-down-os @@ -21,7 +21,7 @@ do *) exit 1 ;; esac done -[ "$ARCH" == "arm" && "$ENV" != "rancher-upgrade" ] && ENV=arm +[[ "$ARCH" == "arm" && "$ENV" != "rancher-upgrade" ]] && ENV=arm DIST=${DIST:-/dist} CLOUD_CONFIG=${CLOUD_CONFIG:-"${SCRIPTS_DIR}/conf/empty.yml"}