aboutsummaryrefslogtreecommitdiffhomepage
path: root/macosx
diff options
context:
space:
mode:
authorGravatar Anders Kaseorg <andersk@mit.edu>2016-10-30 02:05:31 -0400
committerGravatar John Hood <cgull@glup.org>2016-11-04 03:15:03 -0400
commit8a8f2b29ca45a797eadbdb0600982c174174ab5e (patch)
tree2538a435c4445f783989f68e2583046c2953f796 /macosx
parent3b21cd24259beae786dc95b92be6c94b7e7d04c9 (diff)
Fix most shell hygiene issues found by shellcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'macosx')
-rwxr-xr-xmacosx/build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/build.sh b/macosx/build.sh
index d92fcdb..7740fcc 100755
--- a/macosx/build.sh
+++ b/macosx/build.sh
@@ -88,11 +88,11 @@ done
# Build fat binaries
# XXX will break with spaces in pathname
for prog in local/bin/mosh-client local/bin/mosh-server; do
- archprogs=
+ archprogs=()
for arch in $BUILT_ARCHS; do
- archprogs="$archprogs ${PREFIX}_${arch}/$prog"
+ archprogs+=("${PREFIX}_${arch}/$prog")
done
- lipo -create $archprogs -output "${PREFIX}/$prog"
+ lipo -create "${archprogs[@]}" -output "${PREFIX}/$prog"
done
perl -wlpi -e 's{#!/usr/bin/env perl}{#!/usr/bin/perl}' "$PREFIX/local/bin/mosh"