From a56b3cbf7cb7968e9eac93272b829002dd36ce15 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 27 Dec 2020 15:26:43 +0100 Subject: Meta: Set 'pipefail' option correctly in shell scripts This needs '-o' to work correctly. Also update the shebang to bash in some scripts as shellcheck was complaining about pipefail not being a POSIX shell thing otherwise. --- Meta/lint-missing-resources.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Meta/lint-missing-resources.sh') diff --git a/Meta/lint-missing-resources.sh b/Meta/lint-missing-resources.sh index fa8646bc98..2c0a4e043c 100755 --- a/Meta/lint-missing-resources.sh +++ b/Meta/lint-missing-resources.sh @@ -1,5 +1,6 @@ -#!/bin/sh -set -e pipefail +#!/bin/bash + +set -eo pipefail script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) cd "$script_path/.." -- cgit v1.2.3