Skip to content

Commit 549e281

Browse files
committed
feat: enable macOS
1 parent e20846b commit 549e281

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/resources/aws-cli/cli/aws-cli.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,24 @@ softwareupdate --install-rosetta
104104
return;
105105
}
106106

107-
if (installLocation.includes('homebrew')) {
108-
await $.spawn('brew uninstall awscli', { interactive: true, env: { HOMEBREW_NO_AUTO_UPDATE: 1 } });
109-
return;
110-
}
107+
// if (installLocation.includes('homebrew')) {
108+
// await $.spawn('brew uninstall awscli', { interactive: true, env: { HOMEBREW_NO_AUTO_UPDATE: 1 } });
109+
// return;
110+
// }
111111

112112
if (Utils.isLinux()) {
113113
// Remove symlinks from bin dir
114-
await $.spawnSafe('rm -f /usr/local/bin/aws', { requiresRoot: true });
115-
await $.spawnSafe('rm -f /usr/local/bin/aws_completer', { requiresRoot: true });
114+
await $.spawnSafe(`rm -f ${installLocation}`, { requiresRoot: true });
115+
await $.spawnSafe(`rm -f ${installLocation}_completer`, { requiresRoot: true });
116116

117117
// Remove the install directory (always /usr/local/aws-cli for the standalone installer)
118118
await $.spawnSafe('rm -rf /usr/local/aws-cli', { requiresRoot: true });
119119
} else {
120120
await $.spawnSafe(`rm ${installLocation}`, { requiresRoot: true });
121121
await $.spawnSafe(`rm ${installLocation}_completer`, { requiresRoot: true });
122+
123+
// Remove the install directory (always /usr/local/aws-cli for the standalone installer)
124+
await $.spawnSafe('rm -rf /usr/local/aws-cli', { requiresRoot: true });
122125
}
123126
}
124127

0 commit comments

Comments
 (0)