mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
retry
This commit is contained in:
@@ -147,7 +147,7 @@ try {
|
|||||||
Get-ChildItem -Path $ModulePath | Remove-Item -Force -Recurse
|
Get-ChildItem -Path $ModulePath | Remove-Item -Force -Recurse
|
||||||
}
|
}
|
||||||
'Copying files to: "{0}"' -f $ModulePath
|
'Copying files to: "{0}"' -f $ModulePath
|
||||||
$outputFile = $psdpath | Copy-Item -Destination $ModulePath -PassThru
|
$outputFile = $psdpath | Copy-Item -Destination $ModulePath -PassThru -Verbose
|
||||||
$outputFile.fullname
|
$outputFile.fullname
|
||||||
foreach ($file in $Settings.FileList) {
|
foreach ($file in $Settings.FileList) {
|
||||||
if ($file -like '.\*') {
|
if ($file -like '.\*') {
|
||||||
@@ -178,10 +178,7 @@ catch {
|
|||||||
if ($PSScriptRoot) { Pop-Location }
|
if ($PSScriptRoot) { Pop-Location }
|
||||||
throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber)
|
throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber)
|
||||||
}
|
}
|
||||||
finally { if (-not $outputFile ) {
|
finally {
|
||||||
throw "Failed to create module"
|
|
||||||
}
|
|
||||||
if (-not (Test-Path $outputFile)) { throw "$outputfile doesn't exist"}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user