algomath-extract 1.0.9 → 1.0.11
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.
- package/bin/install.js +3 -3
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -368,9 +368,9 @@ const dest = path.join(commandDir, file);
|
|
|
368
368
|
|
|
369
369
|
// For any install that needs elevated permissions, use sudo
|
|
370
370
|
if (needsElevated && !isWindows) {
|
|
371
|
-
// Use sudo to copy, then fix ownership
|
|
372
|
-
execSync(`sudo cp "${source}" "${dest}"`, { stdio: '
|
|
373
|
-
execSync(`sudo chown $(whoami) "${dest}"`, { stdio: '
|
|
371
|
+
// Use sudo to copy (inherit stdio so user sees password prompt), then fix ownership
|
|
372
|
+
execSync(`sudo cp "${source}" "${dest}"`, { stdio: 'inherit' });
|
|
373
|
+
execSync(`sudo chown $(whoami) "${dest}"`, { stdio: 'inherit' });
|
|
374
374
|
} else {
|
|
375
375
|
fs.copyFileSync(source, dest);
|
|
376
376
|
}
|