Skip to content

Commit

Permalink
remove if condition that is always true
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmanning committed May 27, 2012
1 parent bc0d164 commit a7d3941
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions PsGet/PsGet.psm1
Expand Up @@ -611,11 +611,9 @@ function UnzipModule($inp, $dest){

$inp = (Resolve-Path $inp).ProviderPath

if ($inp.Extension -ne ".zip"){
$PSGET_ZIPFolderPath = [IO.Path]::ChangeExtension($inp, ".zip")
Rename-Item $inp $PSGET_ZIPFolderPath -Force
$inp = $PSGET_ZIPFolderPath;
}
$PSGET_ZIPFolderPath = [IO.Path]::ChangeExtension($inp, ".zip")
Rename-Item $inp $PSGET_ZIPFolderPath -Force
$inp = $PSGET_ZIPFolderPath;

Write-Verbose "Unzip $inp to $dest"
# From http://serverfault.com/questions/18872/how-to-zip-unzip-files-in-powershell/201604#201604
Expand Down

0 comments on commit a7d3941

Please sign in to comment.