Skip to content

Commit

Permalink
[devops] Ensure the directory for any provisioning profiles exist bef…
Browse files Browse the repository at this point in the history
…ore trying to copy files into it. (#22263)
  • Loading branch information
rolfbjarne authored Feb 28, 2025
1 parent 1370c80 commit b8575f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ if test -z "$ONLY_CREATE_KEYCHAIN"; then
security import "$p12" -P "${AUTH_TOKEN_LA_DEV_APPLE_P12}" -A -t cert -f pkcs12 -k "$KEYCHAIN_FILE"
done

targetdir="$HOME/Library/MobileDevice/Provisioning Profiles"
mkdir -p "$targetdir"

for source in provisioning-profiles/certificates-and-profiles/*.mobileprovision; do
fn="$(basename "$source")"
target="$HOME/Library/MobileDevice/Provisioning Profiles/$fn"
target="$targetdir/$fn"
if ! test -f "$target" || ! diff "$source" "$target" >/dev/null 2>&1; then
cp "$source" "$target"
echo "${BLUE}Installing provisioning profile '${WHITE}$fn${BLUE}'${CLEAR}"
Expand Down

8 comments on commit b8575f8

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.