summaryrefslogtreecommitdiff
path: root/scripts/build/source
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-01 09:29:52 +0100
committerRaphaƫl Hertzog <hertzog@debian.org>2020-04-23 09:38:01 +0000
commit11836c0c18b07f4bd1ea22a2163875975f3e6816 (patch)
treea3534b7d09a538fecec2379fdba0a7c6a12247a2 /scripts/build/source
parentf6a50b6db204fa1a6d0ae8b371c4108911aed0eb (diff)
downloadvyos-live-build-11836c0c18b07f4bd1ea22a2163875975f3e6816.tar.gz
vyos-live-build-11836c0c18b07f4bd1ea22a2163875975f3e6816.zip
fix $@ parameter expansion issues
$@ when unquoted is subject to further word splitting. this fixes a bunch of instances where it was incorrectly being used unquoted. Gbp-Dch: Short
Diffstat (limited to 'scripts/build/source')
-rwxr-xr-xscripts/build/source32
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/build/source b/scripts/build/source
index 3b67f81c1..7e03c337c 100755
--- a/scripts/build/source
+++ b/scripts/build/source
@@ -33,27 +33,27 @@ fi
Setup_clean_exit
# Configuring chroot (enabling networking)
-lb chroot_hosts install ${@}
-lb chroot_resolv install ${@}
-lb chroot_hostname install ${@}
-lb chroot_archives source install ${@}
+lb chroot_hosts install "${@}"
+lb chroot_resolv install "${@}"
+lb chroot_hostname install "${@}"
+lb chroot_archives source install "${@}"
# Preparing images
-lb source_live ${@}
-lb source_debian ${@}
-lb source_disk ${@}
-lb source_hooks ${@}
-lb source_checksums ${@}
+lb source_live "${@}"
+lb source_debian "${@}"
+lb source_disk "${@}"
+lb source_hooks "${@}"
+lb source_checksums "${@}"
# Building images
-lb source_iso ${@}
-lb source_tar ${@}
-lb source_hdd ${@}
+lb source_iso "${@}"
+lb source_tar "${@}"
+lb source_hdd "${@}"
# Deconfiguring chroot
-lb chroot_archives source remove ${@}
-lb chroot_hostname remove ${@}
-lb chroot_resolv remove ${@}
-lb chroot_hosts remove ${@}
+lb chroot_archives source remove "${@}"
+lb chroot_hostname remove "${@}"
+lb chroot_resolv remove "${@}"
+lb chroot_hosts remove "${@}"
Echo_message "Source stage completed"