codify-plugin-lib 1.0.182-beta58 → 1.0.182-beta59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -165,17 +165,17 @@ Brew can be installed using Codify:
165
165
  if (Utils.isLinux()) {
166
166
  const isAptInstalled = await $.spawnSafe('which apt');
167
167
  if (isAptInstalled.status === SpawnStatus.SUCCESS) {
168
- const { status } = await $.spawnSafe(`apt install ${packageName}`, { interactive: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
168
+ const { status } = await $.spawnSafe(`apt install ${packageName}`, { interactive: true, requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
169
169
  return status === SpawnStatus.SUCCESS;
170
170
  }
171
171
  const isDnfInstalled = await $.spawnSafe('which dnf');
172
172
  if (isDnfInstalled.status === SpawnStatus.SUCCESS) {
173
- const { status } = await $.spawnSafe(`dnf install ${packageName} -y`, { interactive: true });
173
+ const { status } = await $.spawnSafe(`dnf install ${packageName} -y`, { interactive: true, requiresRoot: true });
174
174
  return status === SpawnStatus.SUCCESS;
175
175
  }
176
176
  const isYumInstalled = await $.spawnSafe('which yum');
177
177
  if (isYumInstalled.status === SpawnStatus.SUCCESS) {
178
- const { status } = await $.spawnSafe(`yum install ${packageName} -y`, { interactive: true });
178
+ const { status } = await $.spawnSafe(`yum install ${packageName} -y`, { interactive: true, requiresRoot: true });
179
179
  return status === SpawnStatus.SUCCESS;
180
180
  }
181
181
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-plugin-lib",
3
- "version": "1.0.182-beta58",
3
+ "version": "1.0.182-beta59",
4
4
  "description": "Library plugin library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -208,19 +208,19 @@ Brew can be installed using Codify:
208
208
  if (Utils.isLinux()) {
209
209
  const isAptInstalled = await $.spawnSafe('which apt');
210
210
  if (isAptInstalled.status === SpawnStatus.SUCCESS) {
211
- const { status } = await $.spawnSafe(`apt install ${packageName}`, { interactive: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
211
+ const { status } = await $.spawnSafe(`apt install ${packageName}`, { interactive: true, requiresRoot: true, env: { DEBIAN_FRONTEND: 'noninteractive' } });
212
212
  return status === SpawnStatus.SUCCESS;
213
213
  }
214
214
 
215
215
  const isDnfInstalled = await $.spawnSafe('which dnf');
216
216
  if (isDnfInstalled.status === SpawnStatus.SUCCESS) {
217
- const { status } = await $.spawnSafe(`dnf install ${packageName} -y`, { interactive: true });
217
+ const { status } = await $.spawnSafe(`dnf install ${packageName} -y`, { interactive: true, requiresRoot: true });
218
218
  return status === SpawnStatus.SUCCESS;
219
219
  }
220
220
 
221
221
  const isYumInstalled = await $.spawnSafe('which yum');
222
222
  if (isYumInstalled.status === SpawnStatus.SUCCESS) {
223
- const { status } = await $.spawnSafe(`yum install ${packageName} -y`, { interactive: true });
223
+ const { status } = await $.spawnSafe(`yum install ${packageName} -y`, { interactive: true, requiresRoot: true });
224
224
  return status === SpawnStatus.SUCCESS;
225
225
  }
226
226