docs: do nothing if /srv/contexts does not exist

This commit is contained in:
Earl Warren 2024-01-10 15:57:22 +01:00
parent bc1e2aafa9
commit 8aa95dc301
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -7,6 +7,11 @@ docs_pr=$2
end_to_end=$3
end_to_end_ref=$4
if ! test -d /srv/contexts ; then
echo no contexts in /srv/contexts, do nothing
exit 0
fi
cd $docs/docs/user
if ! test -f actions-contexts/version.txt || test "$VERSION" != $(cat actions-contexts/version.txt) ; then