Skip to content

Commit

Permalink
Fix error on empty unity-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kuler90 committed Nov 13, 2020
1 parent d90c67e commit d5d7a6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ async function run() {
}
const unityHubPath = await installUnityHub();
const unityPath = await installUnityEditor(unityHubPath, installPath, unityVersion, unityVersionChangeset);
await installUnityModules(unityHubPath, unityVersion, unityModules, unityModulesChild);
if (unityModules.length > 0) {
await installUnityModules(unityHubPath, unityVersion, unityModules, unityModulesChild);
}
await postInstall();

core.setOutput('unity-version', unityVersion);
Expand Down

0 comments on commit d5d7a6c

Please sign in to comment.