diff options
author | Linus Groh <mail@linusgroh.de> | 2020-12-27 15:26:43 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-27 21:25:27 +0100 |
commit | a56b3cbf7cb7968e9eac93272b829002dd36ce15 (patch) | |
tree | 82b181e11dee239c691eb142a60c9d681e8a953a /Meta/lint-missing-resources.sh | |
parent | 5122f98198e650f83e948a335e762aeeb306bbaa (diff) | |
download | serenity-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-x | Meta/lint-missing-resources.sh | 5 |
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/.." |