mirror of
https://github.com/rancher/os.git
synced 2025-09-04 08:14:21 +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:
@@ -21,7 +21,7 @@ do
|
|||||||
*) exit 1 ;;
|
*) exit 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
[ "$ARCH" == "arm" && "$ENV" != "rancher-upgrade" ] && ENV=arm
|
[[ "$ARCH" == "arm" && "$ENV" != "rancher-upgrade" ]] && ENV=arm
|
||||||
|
|
||||||
DIST=${DIST:-/dist}
|
DIST=${DIST:-/dist}
|
||||||
CLOUD_CONFIG=${CLOUD_CONFIG:-"${SCRIPTS_DIR}/conf/empty.yml"}
|
CLOUD_CONFIG=${CLOUD_CONFIG:-"${SCRIPTS_DIR}/conf/empty.yml"}
|
||||||
|
Reference in New Issue
Block a user