Skip to content

Commit

Permalink
(chocolateyGH-121) Making Uninstall-ChocolateyZipPackage more robust …
Browse files Browse the repository at this point in the history
…when deleting files that were copied during installation of the Zip package
  • Loading branch information
bc3tech authored and ferventcoder committed Apr 20, 2015
1 parent 18bf625 commit 44eb8e3
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 44eb8e3

Please sign in to comment.