From 1dfb524913c55aa50d8b31b93eed294a285e8e70 Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Mon, 21 Jun 2021 11:58:10 +0200 Subject: [PATCH] [GHA] Fix generate-robots.sh Install tput --- .github/workflows/action.yml | 1 + dev-tools/generate-robots.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index bd831dc3c..d2f4903b0 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -28,6 +28,7 @@ jobs: sudo apt-get update sudo apt-get install -y --assume-yes nginx-extras sudo apt-get -y install dos2unix + sudo apt-get install libncurses5-dbg - name: Run build diff --git a/dev-tools/generate-robots.sh b/dev-tools/generate-robots.sh index 71c73dce8..e7f996fbe 100755 --- a/dev-tools/generate-robots.sh +++ b/dev-tools/generate-robots.sh @@ -43,6 +43,9 @@ # SOFTWARE. # ------------------------------------------------------------------------------ +set -e +set -o pipefail + # ------------------------ # Set Terminal Font Colors # ------------------------ @@ -66,6 +69,9 @@ _tmprobots=./tmp/robots.txt _inputtmp=./dev-tools/_robots_input/robots.tmp _output=./dev-tools/_robots_input/robots-input.txt +sudo mkdir ./tmp +sudo touch ./tmp/robots.txt + # --------- # Variables # --------- @@ -111,6 +117,8 @@ generateRobotsFile # Exit With Error Number # ---------------------- +sudo rm -rf ./tmp + exit ${?} # ------------------------------------------------------------------------------