From 491525d17355ca9f2749286aa61b903271871929 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 20 Dec 2023 22:37:41 +0100 Subject: [PATCH] Add shebangs to bash scripts To specify used interpreter and set exit on error mode. --- CI/teal_ci.sh | 2 +- docs/source/install_luadocumentor_in_docker.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CI/teal_ci.sh b/CI/teal_ci.sh index 5ea312e88c..8117e93443 100755 --- a/CI/teal_ci.sh +++ b/CI/teal_ci.sh @@ -1,4 +1,4 @@ -set -e +#!/bin/bash -e docs/source/install_luadocumentor_in_docker.sh PATH=$PATH:~/luarocks/bin diff --git a/docs/source/install_luadocumentor_in_docker.sh b/docs/source/install_luadocumentor_in_docker.sh index a1ec253600..6d24f3e9f3 100755 --- a/docs/source/install_luadocumentor_in_docker.sh +++ b/docs/source/install_luadocumentor_in_docker.sh @@ -1,3 +1,5 @@ +#!/bin/bash -e + if [ ! -f /.dockerenv ] && [ ! -f /home/docs/omw_luadoc_docker ]; then echo 'This script installs lua-5.1, luarocks, and openmwluadocumentor to $HOME. Should be used only in docker.' exit 1