Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

resolve issue #43 by removing extraneous 'if' #46

Merged
merged 1 commit into from

2 participants

@jamesmanning

No description provided.

@chaliy chaliy merged commit b4bc33b into psget:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 27, 2012
  1. @jamesmanning
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 5 deletions.
  1. +3 −5 PsGet/PsGet.psm1
View
8 PsGet/PsGet.psm1
@@ -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
Something went wrong with that request. Please try again.