Merge "Use [[ for =~ matches"

This commit is contained in:
Jenkins 2017-08-29 05:59:42 +00:00 committed by Gerrit Code Review
commit 39d84d2059
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ fi
select_boot_kernel_initrd $TARGET_ROOT
# Serial console on Power is hvc0
if [ "powerpc ppc64 ppc64le" =~ "$ARCH" ] ; then
if [[ "powerpc ppc64 ppc64le" =~ "$ARCH" ]] ; then
SERIAL_CONSOLE="hvc0"
else
SERIAL_CONSOLE="ttyS0,115200"

View File

@ -147,7 +147,7 @@ function install_grub2 {
echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub
# Serial console on Power is hvc0
if [ "powerpc ppc64 ppc64le" =~ "$ARCH" ] ; then
if [[ "powerpc ppc64 ppc64le" =~ "$ARCH" ]]; then
SERIAL_CONSOLE="hvc0"
else
SERIAL_CONSOLE="ttyS0,115200"