diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2019-12-24 12:53:22 +1300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 02:19:59 +0100 |
commit | ef6eb07468e410f576d1011ddde2029035c170aa (patch) | |
tree | 8781b6a4fb1d6944514c6303ce1eb729d97bd4e5 /Kernel/makeall.sh | |
parent | 0fdbe0863732da3b3a0c3c749878d9848e1f4b97 (diff) | |
download | serenity-ef6eb07468e410f576d1011ddde2029035c170aa.zip |
Build: Meta: Allow makeall.sh and run to be called from any directory
These scripts assume that they are called from within Kernel/ directory.
For convenience, set the current working directory in the scripts to the
path where they are located.
Diffstat (limited to 'Kernel/makeall.sh')
-rwxr-xr-x | Kernel/makeall.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/makeall.sh b/Kernel/makeall.sh index e1beaea98e..26b44c8891 100755 --- a/Kernel/makeall.sh +++ b/Kernel/makeall.sh @@ -1,6 +1,9 @@ #!/bin/sh set -e +script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) +cd "$script_path" + # Get user and group details for setting qemu disk image ownership export build_user=$(id -u) export build_group=$(id -g) |