Skip to content

Commit f901b8d

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PipeScript.ps1.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ Will not interactively transpile {$callingScriptBlock} ( because it would overwr
104104
return
105105
}
106106

107-
$MyInvocation.MyCommand.Module.OnRemove = {
107+
$MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = {
108108
$global:ExecutionContext.SessionState.InvokeCommand.CommandNotFoundAction = $null
109109
}

0 commit comments

Comments
 (0)