mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
Although this should be done in the Makefile, 0444 is done on the replacements
if root is running.
This commit is contained in:
parent
1c246541f2
commit
f9d75803d8
@ -492,7 +492,11 @@ if (-d $global_yard_replacements) {
|
||||
#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;
|
||||
|
||||
# Administrator shouldn't be editing global files.
|
||||
if ( $> == 0 ) {
|
||||
system "chmod 0444 $File::Find::name"
|
||||
if !-d $File::Find::name;
|
||||
}
|
||||
}
|
||||
|
||||
}, $global_yard_replacements;
|
||||
|
Loading…
x
Reference in New Issue
Block a user