Skip to content

Commit

Permalink
Don't assume a "python" executable exists.
Browse files Browse the repository at this point in the history
On Debian Linux at least, "python" is Python 2.x, and doesn't exist if only
Python 3.x is installed.
  • Loading branch information
Screwtapello committed Oct 8, 2020
1 parent 8b2a4e9 commit 0a2ab08
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0a2ab08

Please sign in to comment.