Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume a "python" executable exists. #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/mkdocs.do
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
redo-ifchange doc.list
redo-ifchange doc.list ../redo/py
xargs redo-ifchange ../mkdocs.yml <doc.list

# Most people don't have mkdocs installed, or are using an obsolete one,
Expand All @@ -13,7 +13,7 @@ exit(not ok)
if ! type mkdocs >/dev/null 2>/dev/null; then
echo "Warning: mkdocs is missing; can't generate website." >&2
redo-ifcreate /usr/bin/mkdocs
elif ! python -c "$check" "$ver"; then
elif ! ../redo/py -c "$check" "$ver"; then
echo "Warning: mkdocs is too old ($ver); need at least 1.0.4." >&2
mkd=$(which mkdocs 2>/dev/null || :)
[ -x "$mkd" ] && redo-ifchange "$mkd"
Expand Down