summaryrefslogtreecommitdiff
path: root/Meta/lint-missing-resources.sh
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-12-27 15:26:43 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-27 21:25:27 +0100
commita56b3cbf7cb7968e9eac93272b829002dd36ce15 (patch)
tree82b181e11dee239c691eb142a60c9d681e8a953a /Meta/lint-missing-resources.sh
parent5122f98198e650f83e948a335e762aeeb306bbaa (diff)
downloadserenity-a56b3cbf7cb7968e9eac93272b829002dd36ce15.zip
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.
Diffstat (limited to 'Meta/lint-missing-resources.sh')
-rwxr-xr-xMeta/lint-missing-resources.sh5
1 files changed, 3 insertions, 2 deletions
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/.."