get rid of tree dependency / check if command exists
This commit is contained in:
parent
9c43ced39a
commit
f2dfab5a45
1 changed files with 6 additions and 1 deletions
|
@ -5,4 +5,9 @@ mkdir public
|
|||
mv build/$mainfile.pdf public
|
||||
mv build/$mainfile.log public
|
||||
cd public/
|
||||
tree -H '.' -I "index.html" -D --charset utf-8 -T "$course" > index.html
|
||||
if ! command -v tree &> /dev/null
|
||||
then
|
||||
echo "No tree utility found, skipping making tree"
|
||||
else
|
||||
tree -H '.' -I "index.html" -D --charset utf-8 -T "$course" > index.html
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue