mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
All replacements are now symlinks, and they will also be read-only.
This commit is contained in:
parent
5e7a2a4292
commit
1c246541f2
@ -488,7 +488,11 @@ if (-d $global_yard_replacements) {
|
||||
find sub { ( my $replacement =
|
||||
$File::Find::name ) =~ s/$global_yard_replacements\///;
|
||||
if (!-e "$home_yard_replacements/$replacement") {
|
||||
system "cp -a $File::Find::name $home_yard_replacements/$replacement > /dev/null 2>&1";
|
||||
|
||||
#system "cp -a $File::Find::name $home_yard_replacements/$replacement > /dev/null 2>&1";
|
||||
system "mkdir $home_yard_replacements/$replacement > /dev/null 2>&1" if -d $File::Find::name;
|
||||
symlink_builder( $File::Find::name,"$home_yard_replacements/$replacement") if !-d $File::Find::name;
|
||||
|
||||
}
|
||||
|
||||
}, $global_yard_replacements;
|
||||
@ -504,6 +508,7 @@ sub symlink_builder {
|
||||
|
||||
my ($oldfile,$newfile) = @_;
|
||||
|
||||
|
||||
if (!-e $newfile && !-l $newfile) {
|
||||
my $error;
|
||||
symlink($oldfile,$newfile) or
|
||||
|
Loading…
x
Reference in New Issue
Block a user