summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2023-12-19 10:44:36 +0100
committerOskar Nyberg <oskar@mullvad.net>2024-01-05 16:30:17 +0100
commit96b675477ce0cd58acfedf63ec52e608a07afeb3 (patch)
treed1ab71844704ed4db50040f53bd5ff985d886538
parentf37b61533d7fc544478394755132e89a92041aed (diff)
downloadmullvadvpn-96b675477ce0cd58acfedf63ec52e608a07afeb3.tar.xz
mullvadvpn-96b675477ce0cd58acfedf63ec52e608a07afeb3.zip
Fix shellcheck bash lint
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 9d7af5d2e1..82512c4ee5 100755
--- a/build.sh
+++ b/build.sh
@@ -268,7 +268,7 @@ function build {
local destination_dir="dist-assets"
fi
- for binary in ${BINARIES[*]}; do
+ for binary in "${BINARIES[@]}"; do
local source="$cargo_output_dir/$binary"
local destination="$destination_dir/$binary"
@@ -303,7 +303,7 @@ fi
# Compile for all defined targets, or the current architecture if unspecified.
if [[ -n ${TARGETS:-""} ]]; then
- for t in ${TARGETS[*]}; do
+ for t in "${TARGETS[@]}"; do
source env.sh "$t"
build "$t"
done