mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #1070 from antoineco/cmd/fix-changelog
Fix darwin-rebuild changelog not displaying
This commit is contained in:
commit
6c4aae5a14
1 changed files with 2 additions and 6 deletions
|
@ -203,7 +203,7 @@ if [ "$action" = edit ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$action" = switch ] || [ "$action" = build ] || [ "$action" = check ]; then
|
if [ "$action" = switch ] || [ "$action" = build ] || [ "$action" = check ] || [ "$action" = changelog ]; then
|
||||||
echo "building the system configuration..." >&2
|
echo "building the system configuration..." >&2
|
||||||
if [ -z "$flake" ]; then
|
if [ -z "$flake" ]; then
|
||||||
systemConfig="$(nix-build '<darwin>' "${extraBuildFlags[@]}" -A system)"
|
systemConfig="$(nix-build '<darwin>' "${extraBuildFlags[@]}" -A system)"
|
||||||
|
@ -252,11 +252,7 @@ if [ "$action" = switch ] || [ "$action" = activate ] || [ "$action" = rollback
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$action" = changelog ]; then
|
if [ "$action" = changelog ]; then
|
||||||
echo >&2
|
${PAGER:-less} -- "$systemConfig/darwin-changes"
|
||||||
echo "[1;1mCHANGELOG[0m" >&2
|
|
||||||
echo >&2
|
|
||||||
head -n 32 "$systemConfig/darwin-changes"
|
|
||||||
echo >&2
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$action" = check ]; then
|
if [ "$action" = check ]; then
|
||||||
|
|
Loading…
Reference in a new issue