Fix most shell hygiene issues found by shellcheck

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2016-10-30 02:05:31 -04:00
committed by John Hood
parent 3b21cd2425
commit 8a8f2b29ca
20 changed files with 144 additions and 115 deletions
+3 -3
View File
@@ -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"