From bef9c55b2a67321ef4ce0aaec6acbe4ff984aed3 Mon Sep 17 00:00:00 2001 From: Issac Lin Date: Thu, 11 Aug 2022 15:24:39 +0800 Subject: [PATCH] crc: Fix extraction * crc changed their file structure, need to modify accordingly * escape char `\" is not needed anymore * related: https://github.com/ScoopInstaller/Extras/issues/9026 * related: https://github.com/ScoopInstaller/Scoop/pull/5065 --- bucket/crc.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bucket/crc.json b/bucket/crc.json index ed63afff60..8b4f186ac5 100644 --- a/bucket/crc.json +++ b/bucket/crc.json @@ -11,12 +11,8 @@ "hash": "da2153166ea6996eb3850aa196837df4e68bb1f841d37ca5ad5773400c1152bf", "pre_install": [ "# The trailing backslash(\\) in $dir\\ is required by lessmsi.", - "# '>nul', '2>&1' sets cmd stdout to $null, and stderr to stdout", "Invoke-ExternalCommand lessmsi -ArgumentList @('x', \"$dir\\crc-windows-amd64.msi\", \"$dir\\\") | Out-Null", - "$tail = $version.Split('-')[1]", - "Invoke-ExternalCommand cmd -ArgumentList @('/c', 'copy', '/b', \"`\"$dir\\SourceDir\\CodeReady Containers\\crc_hyperv_$tail.crcbundle.*`\"\", \"`\"$dir\\crc_hyperv_$tail.crcbundle`\"\", '>nul', '2>&1') | Out-Null", - "Remove-Item \"$dir\\SourceDir\\CodeReady Containers\\crc_hyperv_$tail.crcbundle.*\", \"$dir\\*.cab\", \"$dir\\*.msi\" | Out-Null", - "Copy-Item \"$dir\\SourceDir\\CodeReady Containers\\*\" \"$dir\" -Force -Recurse | Out-Null", + "Copy-Item \"$dir\\SourceDir\\Red Hat OpenShift Local\\*\" \"$dir\" -Force -Recurse | Out-Null", "Remove-Item \"$dir\\SourceDir\" -Force -Recurse | Out-Null" ] }