summaryrefslogtreecommitdiff
path: root/stage0/00-configure-apt
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2018-03-02 20:08:24 +0000
committerSerge Schneider <serge@raspberrypi.org>2018-03-13 12:50:50 +0000
commitff2d5edee18efbb7ba2498e5bf8d308c186c4866 (patch)
tree380dd4fb8138fcbcf374839a880deb3191ca0725 /stage0/00-configure-apt
parent56da271499afe7ae8e35a8fd30f04135283b2fb0 (diff)
shellcheck
Diffstat (limited to 'stage0/00-configure-apt')
-rwxr-xr-xstage0/00-configure-apt/00-run.sh10
1 files changed, 5 insertions, 5 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