From f7c798371a50851d947dcfcbb12b57b2b2a41da7 Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Sun, 28 Apr 2019 20:21:16 +0800 Subject: [PATCH] fix: correct deprecation function name --- lib/decompress.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/decompress.ps1 b/lib/decompress.ps1 index 1637b4f53d..cc585dac14 100644 --- a/lib/decompress.ps1 +++ b/lib/decompress.ps1 @@ -188,21 +188,21 @@ function Expand-ZipArchive { } function extract_7zip($path, $to, $removal) { - Show-DeprecationMessage $MyInvocation 'Expand-7ZipArchive' + Show-DeprecatedWarning $MyInvocation 'Expand-7ZipArchive' Expand-7ZipArchive -Path $path -DestinationPath $to -Removal:$removal } function extract_msi($path, $to, $removal) { - Show-DeprecationMessage $MyInvocation 'Expand-MSIArchive' + Show-DeprecatedWarning $MyInvocation 'Expand-MSIArchive' Expand-MSIArchive -Path $path -DestinationPath $to -Removal:$removal } function unpack_inno($path, $to, $removal) { - Show-DeprecationMessage $MyInvocation 'Expand-InnoArchive' + Show-DeprecatedWarning $MyInvocation 'Expand-InnoArchive' Expand-InnoArchive -Path $path -DestinationPath $to -Removal:$removal } function extract_zip($path, $to, $removal) { - Show-DeprecationMessage $MyInvocation 'Expand-ZipArchive' + Show-DeprecatedWarning $MyInvocation 'Expand-ZipArchive' Expand-ZipArchive -Path $path -DestinationPath $to -Removal:$removal }