From dc22f4a47eca7fc1e5e6665f24e0a49bac41b4cb Mon Sep 17 00:00:00 2001 From: Gilad Shoham Date: Tue, 1 Nov 2022 12:56:52 +0200 Subject: [PATCH] fix installation of old bit versions (<0.0.779) --- teambit.bvm/list/gcp/gcp-list.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teambit.bvm/list/gcp/gcp-list.ts b/teambit.bvm/list/gcp/gcp-list.ts index 8f2bc35..8fab2f6 100644 --- a/teambit.bvm/list/gcp/gcp-list.ts +++ b/teambit.bvm/list/gcp/gcp-list.ts @@ -99,9 +99,11 @@ export class GcpList { } async rawFiles() { + // The old location names were capitalized, so we need to get them as well + const osType = this.osType.charAt(0).toUpperCase() + this.osType.slice(1); let filesPrefix = `${prefix}/dev/${this.osType}/`; - if (this.osType === 'darwin' && this.arch === 'arm64'){ - filesPrefix = `${prefix}/dev/${this.osType}-${this.arch}/`; + if (osType === 'Darwin' && this.arch === 'arm64'){ + filesPrefix = `${prefix}/dev/${osType}-${this.arch}/`; } return this.gcpStorage.getFiles({ prefix: filesPrefix }); }