fix a recursive symlink issue with scripts/feeds and src-link
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Apr 2008 21:27:21 +0000 (21:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Apr 2008 21:27:21 +0000 (21:27 +0000)
SVN-Revision: 10714

scripts/feeds

index 4176c31f32f2fd806d270d2ddea3b2741a3b70d4..186144ef38636649bb220fa06d983f89adf9e341 100755 (executable)
@@ -83,7 +83,7 @@ sub update_link($$) {
        my $name = shift;
        my $src = abs_path(shift);
 
-       system("ln -sf $src ./feeds/$name");
+       system("rm -f ./feeds/$name; ln -s $src ./feeds/$name");
 
        return 0;
 }