mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
activation-checks: show initial changelog
This commit is contained in:
parent
a4b604cdbf
commit
c24f744cd3
1 changed files with 11 additions and 8 deletions
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue