1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 09:36:20 +09:00

ci/check-cherry-picks: remove unused condition

The command substitution style we recently switched to strips trailing
newlines, so we don't need to check for empty lines anymore.
This commit is contained in:
Wolfgang Walther 2025-05-28 19:22:31 +02:00
parent 0d0bc640d3
commit 4c345b2fb4
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -20,9 +20,6 @@ remote="$(git remote -v | grep -i 'NixOS/nixpkgs' | head -n1 | cut -f1 || true)"
commits="$(git rev-list --reverse "$1..$2")" commits="$(git rev-list --reverse "$1..$2")"
while read -r new_commit_sha ; do while read -r new_commit_sha ; do
if [ -z "$new_commit_sha" ] ; then
continue # skip empty lines
fi
if [ "$GITHUB_ACTIONS" = 'true' ] ; then if [ "$GITHUB_ACTIONS" = 'true' ] ; then
echo "::group::Commit $new_commit_sha" echo "::group::Commit $new_commit_sha"
else else