Skip to content

sg: use a cp them rm to avoid issues with FS

Administrator requested to merge devx/fix-sg-rename-fs into main

Created by: jhchabran

When downloading mandatory binaries such as caddy, os.Rename can fail because the temp folder is living in another partition. This change adds a safeRename function that handles that edge case.

Test plan

Tested locally.

Merge request reports

Loading