Meta: Allow sync.sh to be run from any directory

I often keep my terminal camped in the project root directory and run
`make && ./Kernel/sync.sh && ./Kernel/run`

This change allows me to not feel like a doofus when I do that :^)
This commit is contained in:
Shannon Booth 2020-01-05 18:38:53 +13:00 committed by Andreas Kling
parent 47276a09dd
commit ad4284428a

View file

@ -1,3 +1,5 @@
#!/bin/sh
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "$script_path"
sudo -E PATH="$PATH" ./build-image-qemu.sh