Skip to content

Commit a9c7970

Browse files
committed
Fix console output for the path of the successfully installed plugin
1 parent 3137105 commit a9c7970

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Compile-SourceScript/Public/Compile-SourceScript.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function Compile-SourceScript {
218218
$updatedPlugin = Get-Item -Path "$PLUGINS_DIR/$($_.Name)" -ErrorAction SilentlyContinue
219219
if (!$updatedPlugin) { "`n Plugin does not exist in the plugins directory." | Write-Host -ForegroundColor Magenta; return }
220220
$updatedPluginHash = (Get-FileHash -Path $updatedPlugin -Algorithm MD5).Hash
221-
if ($updatedPluginHash -eq $compiledPluginHash) { "`n Plugin successfully copied to '$($_.Fullname)'" | Write-Host -ForegroundColor Green }
221+
if ($updatedPluginHash -eq $compiledPluginHash) { "`n Plugin successfully copied to '$($updatedPlugin.Fullname)'" | Write-Host -ForegroundColor Green }
222222
else { "`n Failed to update existing plugin in the plugins directory." | Write-Host -ForegroundColor Magenta; return }
223223
}
224224

0 commit comments

Comments
 (0)