Skip to content

Commit

Permalink
fix: overwrite any existing files when extracting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Jan 1, 2014
1 parent 5be6687 commit 58cca68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function dl_urls($app, $version, $manifest, $architecture, $dir) {
if ($extract_to) {
$null = mkdir "$dir\$extract_to" -force
}
mv "$dir\_scoop_extract\$extract_dir\*" "$dir\$extract_to" -ea stop
mv "$dir\_scoop_extract\$extract_dir\*" "$dir\$extract_to" -force
rm -r -force "$dir\_scoop_extract"
rm "$dir\$fname"
write-host "done"
Expand Down

0 comments on commit 58cca68

Please sign in to comment.