mirror of
https://gitlab.com/TECHNOFAB/soonix.git
synced 2026-02-02 15:25:05 +01:00
chore(lib): add "auto generated" comment to nix generator outputs
fix copy not being able to overwrite generated files due to them being read only (r--r--r--) by removing them first
This commit is contained in:
parent
1246175082
commit
3baef660cf
2 changed files with 21 additions and 1 deletions
|
|
@ -133,6 +133,8 @@ in {
|
|||
if [[ ! -f "${hook.output}" ]] || ! cmp -s "${hook.generatedDerivation}" "${hook.output}"; then
|
||||
_soonix_log "info" "${hookName}" "Copying file: ${hook.generatedDerivation} -> ${hook.output}"
|
||||
mkdir -p "$(dirname "${hook.output}")"
|
||||
# required since they're read only
|
||||
rm -f "${hook.output}"
|
||||
cp "${hook.generatedDerivation}" "${hook.output}"
|
||||
_changed=true
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue