Skip to content

Commit a0793a9

Browse files
committed
move attrib back
1 parent 4142a0f commit a0793a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/install.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ function link_current($versiondir) {
957957
}
958958

959959
New-DirectoryJunction $currentdir $versiondir
960+
attrib $currentdir +R /L
960961
return $currentdir
961962
}
962963

@@ -1207,6 +1208,7 @@ function persist_data($manifest, $original_dir, $persist_dir) {
12071208
if (is_directory $target) {
12081209
# target is a directory, create junction
12091210
New-DirectoryJunction $source $target
1211+
attrib $source +R /L
12101212
} else {
12111213
# target is a file, create hard link
12121214
New-Item -Path $source -ItemType HardLink -Value $target | Out-Null
@@ -1278,6 +1280,5 @@ function New-DirectoryJunction($source, $target) {
12781280
} else {
12791281
New-Item -Path $source -ItemType Junction -Value $target | Out-Null
12801282
}
1281-
attrib $source +R /L
12821283
}
12831284

0 commit comments

Comments
 (0)