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:
Nico Weber 2022-12-19 09:19:26 -05:00 committed by Tim Flynn
parent 9a2ee5a9dd
commit c6f81b5b83
Notes: sideshowbarker 2024-07-17 02:56:26 +09:00
6 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -3,7 +3,7 @@ set -e
SCRIPT_DIR="$(dirname "${0}")"
. "${SCRIPT_DIR}/.shell_include.sh"
. "${SCRIPT_DIR}/shell_include.sh"
USE_FUSE2FS=0

View file

@ -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
View 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.