1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

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 <long.wanglong@huawei.com>
This commit is contained in:
Wang Long
2016-03-26 15:28:04 +08:00
parent 529e7dab06
commit d45360db62

View File

@@ -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"}