Skip to content
Browse files

Fixed installing over broken symlinks.

  • Loading branch information...
1 parent 2573493 commit 69f4f1972c05660e3757f95fc577213452a6d4f7 @conf committed Apr 11, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 install.php
View
3 install.php 100644 → 100755
@@ -36,6 +36,9 @@ function get_install_dir($current_dir) {
foreach($file_iterator as $key => $item) {
$destination = str_replace($current_dir, $install_dir, $item->getRealpath());
echo "Creating symlink: ", $item->getRealpath(), " => " , $destination, PHP_EOL;
+ if (is_link($destination)) {
+ unlink($destination);
+ }
symlink($item->getRealpath(), $destination);
}

0 comments on commit 69f4f19

Please sign in to comment.
Something went wrong with that request. Please try again.