1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Meta: Start moving common shell definitions into a common file

This commit is contained in:
Tim Schumacher 2022-10-16 21:46:42 +02:00 committed by Linus Groh
parent 9d6c4c5137
commit 2a4f81fc83
6 changed files with 25 additions and 50 deletions

View file

@ -2,16 +2,9 @@
set -e
SUDO="sudo"
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
if [ "$(uname -s)" = "SerenityOS" ]; then
SUDO="pls"
fi
die() {
echo "die: $*"
exit 1
}
. "${script_path}/.shell_include.sh"
cleanup() {
if [ -d mnt ]; then
@ -60,5 +53,4 @@ else
echo "done"
fi
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
"$script_path/build-root-filesystem.sh"