From 45fe1a10d01108c0d4d45bcbf0175d5b637f56c8 Mon Sep 17 00:00:00 2001 From: Aaron Bull Schaefer Date: Fri, 18 Nov 2016 11:49:16 -0800 Subject: [PATCH] Tweak formatting for consistency with project conventions Just to have the style match across all files in the project. --- scripts/install-base.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install-base.sh b/scripts/install-base.sh index a25a359..a7593e8 100644 --- a/scripts/install-base.sh +++ b/scripts/install-base.sh @@ -3,11 +3,10 @@ # stop on errors set -eu -if [[ "$PACKER_BUILDER_TYPE" == "qemu" ]] -then - DISK='/dev/vda' +if [[ $PACKER_BUILDER_TYPE == "qemu" ]]; then + DISK='/dev/vda' else - DISK='/dev/sda' + DISK='/dev/sda' fi FQDN='vagrant-arch.vagrantup.com' @@ -48,7 +47,7 @@ echo '==> Bootstrapping the base installation' /usr/bin/pacstrap ${TARGET_DIR} base base-devel /usr/bin/arch-chroot ${TARGET_DIR} pacman -S --noconfirm gptfdisk openssh syslinux /usr/bin/arch-chroot ${TARGET_DIR} syslinux-install_update -i -a -m -/usr/bin/sed -i "s,sda3,${ROOT_PARTITION##/dev/}," "${TARGET_DIR}/boot/syslinux/syslinux.cfg" +/usr/bin/sed -i "s|sda3|${ROOT_PARTITION##/dev/}|" "${TARGET_DIR}/boot/syslinux/syslinux.cfg" /usr/bin/sed -i 's/TIMEOUT 50/TIMEOUT 10/' "${TARGET_DIR}/boot/syslinux/syslinux.cfg" echo '==> Generating the filesystem table'