docs(non-interactive-env): fix typos in idempotency comment
This commit is contained in:
parent
e5b7fd40bb
commit
8500abeb39
@ -57,7 +57,7 @@ export function createNonInteractiveEnvHook(_ctx: PluginInput) {
|
|||||||
const envPrefix = buildEnvPrefix(NON_INTERACTIVE_ENV, "unix")
|
const envPrefix = buildEnvPrefix(NON_INTERACTIVE_ENV, "unix")
|
||||||
|
|
||||||
// Check if the command already starts with the prefix to avoid stacking.
|
// Check if the command already starts with the prefix to avoid stacking.
|
||||||
// This maintain the non-interactive behaivor but make the operation idempotent.
|
// This maintains the non-interactive behavior and makes the operation idempotent.
|
||||||
if (command.trim().startsWith(envPrefix.trim())) {
|
if (command.trim().startsWith(envPrefix.trim())) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user