summaryrefslogtreecommitdiff
path: root/Meta/build-image-grub.sh
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2020-06-20 02:55:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-21 10:13:04 +0200
commite42f4abd6124c31bbde28eb30726b092058a3054 (patch)
tree0970719fd2b537cc9b9334937ccb44f43fa3d850 /Meta/build-image-grub.sh
parent3f5c80e490d9fd135839a05233e92e3710d41877 (diff)
downloadserenity-e42f4abd6124c31bbde28eb30726b092058a3054.zip
Meta: tweak build-image-grub.sh to allow running `make grub-image`..
without sudo.
Diffstat (limited to 'Meta/build-image-grub.sh')
-rwxr-xr-xMeta/build-image-grub.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/build-image-grub.sh b/Meta/build-image-grub.sh
index 019761dd9d..6c1a428d24 100755
--- a/Meta/build-image-grub.sh
+++ b/Meta/build-image-grub.sh
@@ -8,7 +8,7 @@ die() {
}
if [ "$(id -u)" != 0 ]; then
- die "this script needs to run as root"
+ exec sudo -E -- "$0" "$@" || die "this script needs to run as root"
fi
grub=$(command -v grub-install 2>/dev/null) || true