mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +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
Notes:
sideshowbarker
2024-07-19 00:33:14 +09:00
Author: https://github.com/linusg
Commit: a56b3cbf7c
Pull-request: https://github.com/SerenityOS/serenity/pull/4570
4 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e pipefail
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "$script_path/.."
|
cd "$script_path/.."
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e pipefail
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "$script_path/.."
|
cd "$script_path/.."
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
set -e pipefail
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "$script_path/.."
|
cd "$script_path/.."
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e pipefail
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "$script_path/.."
|
cd "$script_path/.."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue