Skip to content

Commit

Permalink
cmd-build: Silence ostree rev-parse
Browse files Browse the repository at this point in the history
Makes for a scary message otherwise in the `ENOENT` case.
  • Loading branch information
jlebon committed Oct 31, 2018
1 parent 773b59a commit 70feb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-build
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi

previous_commit=
if [ -n "${ref:-}" ]; then
previous_commit=$(ostree --repo=${workdir}/repo rev-parse ${ref} || true)
previous_commit=$(ostree --repo=${workdir}/repo rev-parse ${ref} 2>/dev/null || true)
fi
# If the ref was unset or missing, look at the previous build
if [ -z "${previous_commit}" ] && [ -n "${previous_build}" ]; then
Expand Down

0 comments on commit 70feb1d

Please sign in to comment.