mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Meta: Tweak shell_include.sh
* `chmod -x` as it's for sourcing, not for executing * Remove run line, for the same reason * Rename it from .shell_include.sh to shell_include.sh, since e.g. `rg` doesn't search in hidden files by default No behavior change.
This commit is contained in:
parent
9a2ee5a9dd
commit
c6f81b5b83
Notes:
sideshowbarker
2024-07-17 02:56:26 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/c6f81b5b83 Pull-request: https://github.com/SerenityOS/serenity/pull/16588 Reviewed-by: https://github.com/sin-ack ✅
6 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
|
||||
. "${script_path}/.shell_include.sh"
|
||||
. "${script_path}/shell_include.sh"
|
||||
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
set +e
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
|
||||
. "${script_path}/.shell_include.sh"
|
||||
. "${script_path}/shell_include.sh"
|
||||
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
set +e
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
|
||||
. "${script_path}/.shell_include.sh"
|
||||
. "${script_path}/shell_include.sh"
|
||||
|
||||
if [ ! -d "limine" ]; then
|
||||
echo "limine not found, the script will now build it"
|
||||
|
|
|
@ -3,7 +3,7 @@ set -e
|
|||
|
||||
SCRIPT_DIR="$(dirname "${0}")"
|
||||
|
||||
. "${SCRIPT_DIR}/.shell_include.sh"
|
||||
. "${SCRIPT_DIR}/shell_include.sh"
|
||||
|
||||
USE_FUSE2FS=0
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
|
||||
. "${script_path}/.shell_include.sh"
|
||||
. "${script_path}/shell_include.sh"
|
||||
|
||||
cleanup() {
|
||||
if [ -d mnt ]; then
|
||||
|
|
2
Meta/.shell_include.sh → Meta/shell_include.sh
Executable file → Normal file
2
Meta/.shell_include.sh → Meta/shell_include.sh
Executable file → Normal file
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2034
|
||||
# SC2034: "Variable appears unused. Verify it or export it."
|
||||
# Those are intentional here, as the file is meant to be included elsewhere.
|
Loading…
Reference in a new issue