Skip to content

Commit

Permalink
Double quote shell variables to prevent globbing and word splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Sep 22, 2023
1 parent 5e3aee4 commit d47cec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/package/macos-package-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ for i in $(seq $ATTEMPTS); do
hdiutil create -verbose -volname "MusicBrainz Picard $VERSION" \
-srcfolder staging -ov -format UDBZ "$DMG"
ret=$?
[ $ret -eq 0 ] && break
[ "$ret" -eq 0 ] && break
echo "hdutil failed with exit code $ret ($i/$ATTEMPTS), retrying in $DELAY seconds"
sleep $DELAY
done
if [ $ret -ne 0 ]; then
if [ "$ret" -ne 0 ]; then
echo "hdiutil failed too many times, exiting..."
exit $ret
exit "$ret"
fi
set -e

Expand Down

0 comments on commit d47cec4

Please sign in to comment.