chg: [builder] We are 2019, I assume bash on machines that have asciidoc(tor)

fix: [builder] Do not copy if ../misp-site is missing
pull/8/head
Steve Clement 2019-02-15 13:55:17 +09:00
parent 00d668a077
commit f842efe76c
1 changed files with 3 additions and 3 deletions

6
build.sh Normal file → Executable file
View File

@ -1,6 +1,6 @@
#!/bin/sh
#!/usr/bin/env bash
asciidoctor book.adoc
asciidoctor-pdf book.adoc
cp book.html ../misp-website/best-practices-in-threat-intelligence.html
cp book.pdf ../misp-website/best-practices-in-threat-intelligence.pdf
[[ -d ../misp-website ]] && cp book.html ../misp-website/best-practices-in-threat-intelligence.html
[[ -d ../misp-website ]] && cp book.pdf ../misp-website/best-practices-in-threat-intelligence.pdf