diff --git a/scripts/build_filesystem.sh b/scripts/build_filesystem.sh index 788f8e4..75e8287 100755 --- a/scripts/build_filesystem.sh +++ b/scripts/build_filesystem.sh @@ -13,6 +13,11 @@ if [ ! -f ./dependencies/hardened_malloc/Makefile ]; then git clone https://github.com/GrapheneOS/hardened_malloc.git fi +cd "$(dirname "$0")" +DIR="$(dirname "$0")" +cd .. +echo $PWD + #switching to root to perform chroot if [ "$(id -u)" -ne 0 ]; then echo "switching from $(id -un) to root"