comparison deploy/osx/sign.sh @ 2591:6c15b82e7e69

Avoid failing when run without args
author Chris Cannam
date Mon, 10 Aug 2020 18:28:55 +0100
parents f6398deea932
children
comparison
equal deleted inserted replaced
2590:4448639b9bb1 2591:6c15b82e7e69
1 #!/bin/bash 1 #!/bin/bash
2 2
3 set -eu 3 set -e
4 4
5 # Execute this from the top-level directory of the project (the one 5 # Execute this from the top-level directory of the project (the one
6 # that contains the .app bundle). Supply the name of the .app bundle 6 # that contains the .app bundle). Supply the name of the .app bundle
7 # as argument 7 # as argument
8 dir="$1" 8 dir="$1"
10 echo "Usage: $0 <pkgdir>" 10 echo "Usage: $0 <pkgdir>"
11 echo "Where pkgdir is the directory containing <MyApplication>.app" 11 echo "Where pkgdir is the directory containing <MyApplication>.app"
12 echo "All .app bundles in pkgdir will be signed" 12 echo "All .app bundles in pkgdir will be signed"
13 exit 2 13 exit 2
14 fi 14 fi
15
16 set -u
15 17
16 entitlements=deploy/osx/Entitlements.plist 18 entitlements=deploy/osx/Entitlements.plist
17 helper_entitlements=deploy/osx/HelperEntitlements.plist 19 helper_entitlements=deploy/osx/HelperEntitlements.plist
18 20
19 for app in "$dir"/*.app; do 21 for app in "$dir"/*.app; do