Make doc/make_readme.sh independent of PWD

This commit is contained in:
Étienne BERSAC 2022-07-11 12:12:26 +02:00
parent ed98098bf5
commit 98e03e8b54
No known key found for this signature in database
GPG key ID: 95997557AD5A6DBF

View file

@ -5,7 +5,8 @@ if ! command -v check_patroni &>/dev/null; then
exit 1
fi
README="../README.md"
top_srcdir="$(readlink -m "$0/../..")"
README="${top_srcdir}/README.md"
function readme(){
echo "$1" >> $README
}