mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
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.
This commit is contained in:
parent
5122f98198
commit
a56b3cbf7c
4 changed files with 11 additions and 7 deletions
|
@ -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/.."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue