Skip to content

Commit ef6ab16

Browse files
author
James Brundage
committed
PipeScript Module: Handling CommandNotFound (Fixes #281)
1 parent f901b8d commit ef6ab16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PipeScript.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ Will not interactively transpile {$callingScriptBlock} ( because it would overwr
143143
return
144144
}
145145

146-
$MyInvocation.MyCommand.Module.OnRemove = {
146+
$MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = {
147147
$global:ExecutionContext.SessionState.InvokeCommand.CommandNotFoundAction = $null
148148
}

0 commit comments

Comments
 (0)