Skip to content

Commit

Permalink
[root-config] Fix --git-revision:
Browse files Browse the repository at this point in the history
Fixes #14229
  • Loading branch information
Axel-Naumann authored and guitargeek committed Jan 9, 2024
1 parent 1224231 commit 8ad86e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/root-config.in
Expand Up @@ -558,7 +558,7 @@ while test $# -gt 0; do
--git-revision)
### Output the git revision. Give up if gitinfo.txt can not be found.
if test -r "${etcdir}/gitinfo.txt"; then
out="$out `head -m2 \"${etcdir}/gitinfo.txt\" | tail -n`"
out="$out `head -n 2 \"${etcdir}/gitinfo.txt\" | tail -n 1`"
else
echo "cannot read ${etcdir}/gitinfo.txt"
exit 1
Expand Down

0 comments on commit 8ad86e6

Please sign in to comment.