Commit fd44624d authored by Kevin Daudt's avatar Kevin Daudt

changed-aports: do not run xargs command when input empty

When there are no changed APKBUILD files, xargs will still call the
command. `dirname` returns an error in that case.

Provide `-r` to xargs to prevent it from running the command when the
input is empty.
parent 18f91a39
Pipeline #159 passed with stages
in 50 seconds
......@@ -17,4 +17,4 @@ if ! git rev-parse --verify --quiet $basebranch >/dev/null; then
git fetch origin refs/heads/$basebranch:refs/heads/$basebranch
fi
git --no-pager diff --diff-filter=ACMR --name-only $basebranch...HEAD -- "*/APKBUILD" | xargs -n1 dirname
git --no-pager diff --diff-filter=ACMR --name-only $basebranch...HEAD -- "*/APKBUILD" | xargs -r -n1 dirname
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment