From f842efe76cbb0ca0548c53edf7ad4b64a8162a79 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Fri, 15 Feb 2019 13:55:17 +0900 Subject: [PATCH] chg: [builder] We are 2019, I assume bash on machines that have asciidoc(tor) fix: [builder] Do not copy if ../misp-site is missing --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 build.sh 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