Skip to content

Commit

Permalink
preserve permissions when copying Nim files (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
janAkali authored Nov 21, 2024
1 parent 6ba10a4 commit 53fc319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/downloadnim.nim
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ proc extract*(path: string, extractDir: string) =
srcDir = contents[0][1]

# Finally copy the directory to what the user specified.
copyDir(srcDir, extractDir)
copyDirWithPermissions(srcDir, extractDir)

proc getNimInstallationDir*(options: Options, version: Version): string =
return getNimBinariesDir(options) / ("nim-$1" % $version)
Expand Down

0 comments on commit 53fc319

Please sign in to comment.