diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2017-08-01 22:59:19 +0200 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2017-08-01 22:59:19 +0200 |
| commit | c24f744cd3a53d6297be61fa8329a6b660fbaa24 (patch) | |
| tree | e56c4bf7036967ade2e84bdf174e839dda6d6f16 /modules/system | |
| parent | a4b604cdbf83e97e0f9b47c0d5d129eeb5b69624 (diff) | |
activation-checks: show initial changelog
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/activation-checks.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/modules/system/activation-checks.nix b/modules/system/activation-checks.nix index 3ec3f52..279cc6e 100644 --- a/modules/system/activation-checks.nix +++ b/modules/system/activation-checks.nix @@ -4,15 +4,18 @@ with lib; let darwinChanges = '' + darwinChanges=/dev/null if test -e /run/current-system/darwin-changes; then - darwinChanges=$(diff --changed-group-format='%>' --unchanged-group-format= /run/current-system/darwin-changes $systemConfig/darwin-changes 2> /dev/null) || true - if test -n "$darwinChanges"; then - echo >&2 - echo "[1;1mCHANGELOG[0m" >&2 - echo >&2 - echo "$darwinChanges" >&2 - echo >&2 - fi + darwinChanges=/run/current-system/darwin-changes + fi + + darwinChanges=$(diff --changed-group-format='%>' --unchanged-group-format= /run/current-system/darwin-changes $systemConfig/darwin-changes 2> /dev/null) || true + if test -n "$darwinChanges"; then + echo >&2 + echo "[1;1mCHANGELOG[0m" >&2 + echo >&2 + echo "$darwinChanges" >&2 + echo >&2 fi ''; |
