message: Emulate is_musl_based_distro
diff: @@ -177,12 +177,13 @@ export class PlatformInformation {
  return architecture;
  }
  + // Emulates https://github.com/dotnet/install-scripts/blob/3c6cc06/src/dotnet-install.sh#L187-L189.
  private static async GetIsMusl(): Promise<boolean> {
  try {
  const output = await util.execChildProcess('ldd --version');
  return output.includes('musl');
  } catch (err) {
  - return false;
  + return err instanceof Error ? err.message.includes('musl') : false;
  }
  }
  