Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit 34d022b

Browse files
author
Ignacio Bonafonte
committed
Put platform string in lowercase to improve comparisons
1 parent b84bf6e commit 34d022b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,8 @@ async function run() {
971971
envVars[SCOPE_DSN] = dsn;
972972
}
973973

974-
const platform = core.getInput("platform") || "ios";
974+
let platform = core.getInput("platform") || "ios";
975+
platform = platform.toLowerCase();
975976

976977
const scopeFrameworkPath = getPathForPlatform(platform);
977978
const scopeFrameworkToolsPath = getToolsPathForPlatform(platform);

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ async function run() {
3030
envVars[SCOPE_DSN] = dsn;
3131
}
3232

33-
const platform = core.getInput("platform") || "ios";
33+
let platform = core.getInput("platform") || "ios";
34+
platform = platform.toLowerCase();
3435

3536
const scopeFrameworkPath = getPathForPlatform(platform);
3637
const scopeFrameworkToolsPath = getToolsPathForPlatform(platform);

0 commit comments

Comments
 (0)