diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index 30750c0..07810a1 --- a/build.sh +++ b/build.sh @@ -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