summaryrefslogtreecommitdiff
path: root/stage0
diff options
context:
space:
mode:
Diffstat (limited to 'stage0')
-rwxr-xr-xstage0/00-configure-apt/00-run.sh10
-rwxr-xr-xstage0/prerun.sh4
2 files changed, 7 insertions, 7 deletions
diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh
index 7966ef1..9d21ffb 100755
--- a/stage0/00-configure-apt/00-run.sh
+++ b/stage0/00-configure-apt/00-run.sh
@@ -1,13 +1,13 @@
#!/bin/bash -e
-install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/
-install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/
+install -m 644 files/sources.list "${ROOTFS_DIR}/etc/apt/"
+install -m 644 files/raspi.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
if [ -n "$APT_PROXY" ]; then
- install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
- sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|"
+ install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
+ sed "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" -i -e "s|APT_PROXY|${APT_PROXY}|"
else
- rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
+ rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
fi
on_chroot apt-key add - < files/raspberrypi.gpg.key
diff --git a/stage0/prerun.sh b/stage0/prerun.sh
index 14c09c3..80c43f7 100755
--- a/stage0/prerun.sh
+++ b/stage0/prerun.sh
@@ -1,5 +1,5 @@
#!/bin/bash -e
-if [ ! -d ${ROOTFS_DIR} ]; then
- bootstrap stretch ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/
+if [ ! -d "${ROOTFS_DIR}" ]; then
+ bootstrap stretch "${ROOTFS_DIR}" http://mirrordirector.raspbian.org/raspbian/
fi