mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Meta: Start moving common shell definitions into a common file
This commit is contained in:
parent
9d6c4c5137
commit
2a4f81fc83
6 changed files with 25 additions and 50 deletions
|
@ -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"
|
||||
|
||||
if [ "$(id -u)" != 0 ]; then
|
||||
set +e
|
||||
|
@ -98,7 +91,6 @@ mkdir -p mnt
|
|||
mount "${dev}${partition_number}" mnt/ || die "couldn't mount filesystem"
|
||||
echo "done"
|
||||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
"$script_path/build-root-filesystem.sh"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue