Skip to content

Commit

Permalink
Merge branch 'patch-1' into stable
Browse files Browse the repository at this point in the history
* patch-1:
  (GH-121) Making Uninstall-ChocolateyZipPackage more robust when deleting files that were copied during installation of the Zip package
  • Loading branch information
ferventcoder committed Apr 20, 2015
2 parents 18bf625 + 44eb8e3 commit 3618159
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# limitations under the License.

function UnInstall-ChocolateyZipPackage {
<#
.SYNOPSIS
Expand Down Expand Up @@ -50,7 +50,7 @@ param(
$zipContentFile
$zipContents=get-content $zipContentFile
foreach ($fileInZip in $zipContents) {
remove-item "$fileInZip" -ErrorAction SilentlyContinue
remove-item -Path "$fileInZip" -ErrorAction SilentlyContinue -Recurse -Force
}
}
}
}

0 comments on commit 3618159

Please sign in to comment.