Skip to content

Commit

Permalink
fix installation of old bit versions (<0.0.779)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiladShoham committed Nov 1, 2022
1 parent fc410a9 commit dc22f4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions teambit.bvm/list/gcp/gcp-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit dc22f4a

Please sign in to comment.