rootless-config 1.7.1 → 1.7.2
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/package.json
CHANGED
|
@@ -133,9 +133,14 @@ export default {
|
|
|
133
133
|
logger.success('Rootless hook already installed.')
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// --profile-only:
|
|
137
|
-
//
|
|
138
|
-
if (args.profileOnly)
|
|
136
|
+
// --profile-only: используется в postinstall при npm install -g
|
|
137
|
+
// Только устанавливает профиль, без вывода кода в stdout
|
|
138
|
+
if (args.profileOnly) {
|
|
139
|
+
if (!alreadyInstalled) {
|
|
140
|
+
process.stderr.write('\x1b[32m✔ [rootless] Profile hook installed — open a new terminal to activate.\x1b[0m\n')
|
|
141
|
+
}
|
|
142
|
+
return
|
|
143
|
+
}
|
|
139
144
|
|
|
140
145
|
// Если stdout пайпится (Invoke-Expression) — выводим HOOK_BODY
|
|
141
146
|
// Если терминал — показываем подсказку
|