Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mackoj/PlatformLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Apr 14, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 01c8d19 + 15fc00a commit 01b83fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bitrisePlatformLookup.swift
Original file line number Diff line number Diff line change
@@ -12,19 +12,19 @@ func performCommand(_ command : PlatformLookupCommand) throws {
let output = try PlatformLookup.format(platform, deviceFamily: deviceFamily)

_ = try shell(
"envman add --key PLATFORM_LOOKUP_DEVICE_MODEL --value \"\(platform.devices.last!.name)\""
"envman add --key PLATFORM_LOOKUP_DEVICE_MODEL --value \"\(platform.devices.last!.name)\" 2> /dev/null"
)
_ = try shell(
"envman add --key PLATFORM_LOOKUP_OS_VERSION --value \"\(platform.runtime.version)\""
"envman add --key PLATFORM_LOOKUP_OS_VERSION --value \"\(platform.runtime.version)\" 2> /dev/null"
)
_ = try shell(
"envman add --key PLATFORM_LOOKUP_DEVICE_UDID --value \"\(platform.devices.last!.udid)\""
"envman add --key PLATFORM_LOOKUP_DEVICE_UDID --value \"\(platform.devices.last!.udid)\" 2> /dev/null"
)
_ = try shell(
"envman add --key PLATFORM_LOOKUP_PLATFORM --value \"\(output)\""
"envman add --key PLATFORM_LOOKUP_PLATFORM --value \"\(output)\" 2> /dev/null"
)
_ = try shell(
"envman add --key PLATFORM_LOOKUP_SIMULATOR_NAME --value \"\(deviceFamily.simulatorName)\""
"envman add --key PLATFORM_LOOKUP_SIMULATOR_NAME --value \"\(deviceFamily.simulatorName)\" 2> /dev/null"
)
fputs(output + "\n", stdout)
}

0 comments on commit 01b83fd

Please sign in to comment.