summary refs log tree commit diff stats
path: root/tools/atlas
diff options
context:
space:
mode:
authorSirOlaf <34164198+SirOlaf@users.noreply.github.com>2023-05-31 06:26:51 +0200
committerGitHub <noreply@github.com>2023-05-31 06:26:51 +0200
commitbf9ee00998eaa3813c6893a9b9642a17b13196d7 (patch)
tree17f667e17168706e82b7bd017262ea5fe03fd887 /tools/atlas
parente43a51fcf3dff166838cdc3f2fc9690c5fa24846 (diff)
downloadNim-bf9ee00998eaa3813c6893a9b9642a17b13196d7.tar.gz
Atlas: Use copyFileWithPermissions to copy nim executable (#21967)
Use copyFileWithPermissions to copy nim executable

Co-authored-by: SirOlaf <>
Diffstat (limited to 'tools/atlas')
-rw-r--r--tools/atlas/atlas.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/atlas/atlas.nim b/tools/atlas/atlas.nim
index acc622dd4..51c024a12 100644
--- a/tools/atlas/atlas.nim
+++ b/tools/atlas/atlas.nim
@@ -891,7 +891,7 @@ proc setupNimEnv(c: var AtlasContext; nimVersion: string) =
   let nimExe0 = ".." / csourcesVersion / "bin" / "nim".addFileExt(ExeExt)
   withDir c, c.workspace / nimDest:
     let nimExe = "bin" / "nim".addFileExt(ExeExt)
-    copyFile nimExe0, nimExe
+    copyFileWithPermissions nimExe0, nimExe
     let dep = Dependency(name: toName(nimDest), rel: normal, commit: nimVersion)
     if not nimVersion.isDevel:
       let commit = versionToCommit(c, dep)