build.sh Script for nikola build
This commit is contained in:
parent
9cb60ea79f
commit
a241676ca5
2 changed files with 20 additions and 2 deletions
18
bin/build.sh
Normal file
18
bin/build.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! test -d website
|
||||
then
|
||||
echo "Website directory not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v nikola >/dev/null 2>&1
|
||||
then
|
||||
echo "nikola command not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd website
|
||||
|
||||
nikola build
|
||||
exit "$?"
|
||||
Loading…
Add table
Add a link
Reference in a new issue