Commit 59ab3418 authored by Paul Wise's avatar Paul Wise Committed by intrigeri

Double quote array expansions to avoid re-splitting elements

Suggested-by: ShellCheck
Documentation: https://www.shellcheck.net/wiki/SC2068
parent a5840216
......@@ -155,7 +155,7 @@ if [ -d "$WORKAROUNDS_SRC" ]; then
fi
echo "I: Building ISO image ${BUILD_ISO_FILENAME}..."
time lb build noauto ${@}
time lb build noauto "${@}"
[ -e binary.iso ] || fatal "lb build failed ($?)."
echo "I: ISO image was successfully created"
......
......@@ -10,7 +10,7 @@ for dir in chroot/{dev/pts,proc,sys,var/lib/dpkg} ; do
fi
done
lb clean noauto ${@}
lb clean noauto "${@}"
# rm -f build-*.log
......
......@@ -91,7 +91,7 @@ export LB_BOOTSTRAP_INCLUDE="gnupg"
RUN_LB_CONFIG="lb config noauto"
# init config/ with defaults for the target distribution
$RUN_LB_CONFIG --distribution buster ${@}
$RUN_LB_CONFIG --distribution buster "${@}"
# set up everything for time-based snapshots:
if [ -n "${APT_SNAPSHOTS_SERIALS:-}" ]; then
......@@ -159,7 +159,7 @@ $RUN_LB_CONFIG \
--syslinux-splash data/splash.png \
--syslinux-timeout 4 \
--initramfs=live-boot \
${@}
"${@}"
install -d config/chroot_local-includes/etc/amnesia/
......
......@@ -6,5 +6,5 @@ RUN_AS_USER=tails-persistence-setup
cd /
xhost +SI:localuser:"$RUN_AS_USER"
sudo -u "$RUN_AS_USER" /usr/bin/tails-persistence-setup --step delete $@
sudo -u "$RUN_AS_USER" /usr/bin/tails-persistence-setup --step delete "$@"
xhost -SI:localuser:"$RUN_AS_USER"
......@@ -6,5 +6,5 @@ RUN_AS_USER=tails-persistence-setup
cd /
xhost +SI:localuser:"$RUN_AS_USER"
sudo -u "$RUN_AS_USER" /usr/bin/tails-persistence-setup $@
sudo -u "$RUN_AS_USER" /usr/bin/tails-persistence-setup "$@"
xhost -SI:localuser:"$RUN_AS_USER"
......@@ -56,7 +56,7 @@ get_name_of_nic() {
mod_rev_dep_aux() {
local mod
local rev_deps
for mod in ${@}; do
for mod in "${@}"; do
if echo ${MOD_REV_DEP_VISITED} | grep -qw ${mod}; then
continue
fi
......
......@@ -131,13 +131,13 @@ migrate_persistence_preset()
# We override live-boot's logging facilities to get more useful error messages
log_warning_msg ()
{
warning ${@}
warning "${@}"
}
# We override live-boot's panic() since it does a lot of crazy stuff
panic ()
{
error ${@}
error "${@}"
}
list_gpt_volumes ()
......@@ -567,7 +567,7 @@ main ()
list_gpt_volumes ${labels}
;;
activate|close)
if ! echo ${@} | grep -qe "[^[:space:]]"
if ! echo "${@}" | grep -qe "[^[:space:]]"
then
error "you must specify at least one volume"
fi
......@@ -582,4 +582,4 @@ main ()
esac
}
main ${@}
main "${@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment