Skip to content

Commit 406a680

Browse files
committed
fix: Fixes for docker, ollama, ssh-add and uv
1 parent abb68db commit 406a680

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "default",
3-
"version": "1.1.0-beta.12",
3+
"version": "1.1.0-beta.16",
44
"description": "Default plugin for Codify - provides 50+ declarative resources for managing development tools and system configuration across macOS and Linux",
55
"main": "dist/index.js",
66
"scripts": {

src/resources/docker/docker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class DockerResource extends Resource<DockerConfig> {
1919
getSettings(): ResourceSettings<DockerConfig> {
2020
return {
2121
id: 'docker',
22-
operatingSystems: [OS.Darwin],
22+
operatingSystems: [OS.Darwin, OS.Linux],
2323
schema: Schema,
2424
parameterSettings: {
2525
acceptLicense: {

src/resources/ollama/ollama.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ export class OllamaResource extends Resource<OllamaConfig> {
141141
// The official install script installs the binary, creates the `ollama`
142142
// system user, and registers + starts a systemd service automatically.
143143
await $.spawn(
144-
'curl -fsSL https://ollama.com/install.sh | sh',
145-
{ interactive: true }
144+
'bash -c "curl -fsSL https://ollama.com/install.sh | sh"',
145+
{ interactive: true, requiresRoot: true }
146146
);
147147
}
148148

src/resources/python/uv/tools-parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class UvToolsParameter extends ArrayStatefulParameter<UvConfig, string> {
2727

2828
override async addItem(tool: string): Promise<void> {
2929
const $ = getPty();
30-
await $.spawnSafe(`uv tool install --force ${tool}`, { interactive: true });
30+
await $.spawnSafe(`uv tool install ${tool}`, { interactive: true });
3131
}
3232

3333
override async removeItem(tool: string): Promise<void> {

src/resources/ssh/ssh-add.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export class SshAddResource extends Resource<SshAddConfig> {
7878

7979
if (Utils.isLinux()) {
8080
if ((await $.spawnSafe('ssh-agent -l')).status === SpawnStatus.ERROR) {
81-
await FileUtils.addToStartupFile('eval "$(ssh-agent -s)"');
81+
await FileUtils.addToStartupFile('eval "$(ssh-agent -s)" >/dev/null');
8282
}
8383

84-
await FileUtils.addToStartupFile('ssh-add ' + path);
84+
await FileUtils.addToStartupFile('ssh-add ' + path + ' >/dev/null 2>&1');
8585
}
8686

8787
if (Utils.isMacOS()) {

0 commit comments

Comments
 (0)