From ff2d5edee18efbb7ba2498e5bf8d308c186c4866 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 2 Mar 2018 20:08:24 +0000 Subject: shellcheck --- stage1/00-boot-files/00-run.sh | 4 ++-- stage1/01-sys-tweaks/00-run.sh | 6 +++--- stage1/02-net-tweaks/00-run.sh | 6 +++--- stage1/prerun.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'stage1') diff --git a/stage1/00-boot-files/00-run.sh b/stage1/00-boot-files/00-run.sh index 2c976a8..bc61397 100755 --- a/stage1/00-boot-files/00-run.sh +++ b/stage1/00-boot-files/00-run.sh @@ -1,4 +1,4 @@ #!/bin/bash -e -install -m 644 files/cmdline.txt ${ROOTFS_DIR}/boot/ -install -m 644 files/config.txt ${ROOTFS_DIR}/boot/ +install -m 644 files/cmdline.txt "${ROOTFS_DIR}/boot/" +install -m 644 files/config.txt "${ROOTFS_DIR}/boot/" diff --git a/stage1/01-sys-tweaks/00-run.sh b/stage1/01-sys-tweaks/00-run.sh index 4454056..61ba51b 100755 --- a/stage1/01-sys-tweaks/00-run.sh +++ b/stage1/01-sys-tweaks/00-run.sh @@ -1,8 +1,8 @@ #!/bin/bash -e -install -d ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d -install -m 644 files/noclear.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/noclear.conf -install -v -m 644 files/fstab ${ROOTFS_DIR}/etc/fstab +install -d "${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d" +install -m 644 files/noclear.conf "${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/noclear.conf" +install -v -m 644 files/fstab "${ROOTFS_DIR}/etc/fstab" on_chroot << EOF if ! id -u pi >/dev/null 2>&1; then diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh index 174b9f8..96a1774 100755 --- a/stage1/02-net-tweaks/00-run.sh +++ b/stage1/02-net-tweaks/00-run.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf -install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname +install -m 644 files/ipv6.conf "${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf" +install -m 644 files/hostname "${ROOTFS_DIR}/etc/hostname" -ln -sf /dev/null ${ROOTFS_DIR}/etc/systemd/network/99-default.link +ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link" diff --git a/stage1/prerun.sh b/stage1/prerun.sh index ebb5d35..9acd13c 100755 --- a/stage1/prerun.sh +++ b/stage1/prerun.sh @@ -1,5 +1,5 @@ #!/bin/bash -e -if [ ! -d ${ROOTFS_DIR} ]; then +if [ ! -d "${ROOTFS_DIR}" ]; then copy_previous fi -- cgit v1.2.3