Skip to content

Commit

Permalink
Changes [build image]
Browse files Browse the repository at this point in the history
  • Loading branch information
Electroid committed Nov 13, 2024
1 parent c9e63ab commit f2a83da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/machine.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import {
$,
curlSafe,
getArch,
getRepository,
getDistro,
getSecret,
isCI,
isLinux,
isMacOS,
readFile,
spawn,
Expand All @@ -16,12 +17,10 @@ import {
tmpdir,
waitForPort,
which,
writeFile,
} from "./utils.mjs";
import { join, resolve } from "node:path";
import { homedir, userInfo } from "node:os";
import { homedir } from "node:os";
import { appendFileSync, existsSync, mkdirSync, mkdtempSync, readdirSync } from "node:fs";
import { generateKeyPairSync } from "node:crypto";

const docker = {
getPlatform(platform) {
Expand Down Expand Up @@ -121,6 +120,8 @@ export const aws = {
if (!aws) {
if (isMacOS) {
await spawnSafe(["brew", "install", "awscli"]);
} else if (isLinux && getDistro() === "debian") {
await spawnSafe(["sudo", "apt-get", "install", "-y", "awscli"]);
} else {
throw new Error("AWS CLI is not installed, please install it");
}
Expand Down

0 comments on commit f2a83da

Please sign in to comment.