12 lines
184 B
Bash
12 lines
184 B
Bash
#!/bin/bash
|
|
tmpfile=$(mktemp /tmp/quiet_build_log.XXXX)
|
|
python -m mkdocs build -d $1 >$tmpfile 2>&1
|
|
if [ $? -eq 0 ]
|
|
then
|
|
rm $tmpfile
|
|
exit 0
|
|
else
|
|
cat $tmpfile
|
|
exit 1
|
|
fi
|