mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +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
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=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
|
||||||
. "${script_path}/.shell_include.sh"
|
. "${script_path}/shell_include.sh"
|
||||||
|
|
||||||
if [ "$(id -u)" != 0 ]; then
|
if [ "$(id -u)" != 0 ]; then
|
||||||
set +e
|
set +e
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
|
||||||
. "${script_path}/.shell_include.sh"
|
. "${script_path}/shell_include.sh"
|
||||||
|
|
||||||
if [ "$(id -u)" != 0 ]; then
|
if [ "$(id -u)" != 0 ]; then
|
||||||
set +e
|
set +e
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
|
||||||
. "${script_path}/.shell_include.sh"
|
. "${script_path}/shell_include.sh"
|
||||||
|
|
||||||
if [ ! -d "limine" ]; then
|
if [ ! -d "limine" ]; then
|
||||||
echo "limine not found, the script will now build it"
|
echo "limine not found, the script will now build it"
|
||||||
|
|
|
@ -3,7 +3,7 @@ set -e
|
||||||
|
|
||||||
SCRIPT_DIR="$(dirname "${0}")"
|
SCRIPT_DIR="$(dirname "${0}")"
|
||||||
|
|
||||||
. "${SCRIPT_DIR}/.shell_include.sh"
|
. "${SCRIPT_DIR}/shell_include.sh"
|
||||||
|
|
||||||
USE_FUSE2FS=0
|
USE_FUSE2FS=0
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
|
|
||||||
. "${script_path}/.shell_include.sh"
|
. "${script_path}/shell_include.sh"
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
if [ -d mnt ]; then
|
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
|
# shellcheck disable=SC2034
|
||||||
# SC2034: "Variable appears unused. Verify it or export it."
|
# SC2034: "Variable appears unused. Verify it or export it."
|
||||||
# Those are intentional here, as the file is meant to be included elsewhere.
|
# Those are intentional here, as the file is meant to be included elsewhere.
|
Loading…
Add table
Add a link
Reference in a new issue