diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2020-06-20 03:01:02 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-21 10:13:04 +0200 |
commit | 4a784d4d1bcdfef7743b8423613c316af33a000d (patch) | |
tree | da8cfc9321cf580358591869a3d9126ee2eb28b5 /Meta | |
parent | e42f4abd6124c31bbde28eb30726b092058a3054 (diff) | |
download | serenity-4a784d4d1bcdfef7743b8423613c316af33a000d.zip |
Meta: get rid of sync.sh using the technique used in the previous commit
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/build-image-qemu.sh | 3 | ||||
-rwxr-xr-x | Meta/sync.sh | 6 |
2 files changed, 2 insertions, 7 deletions
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh index b26fb1838e..578a56c4b1 100755 --- a/Meta/build-image-qemu.sh +++ b/Meta/build-image-qemu.sh @@ -8,8 +8,9 @@ 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 + if [ "$(uname -s)" = "Darwin" ]; then export PATH="/usr/local/opt/e2fsprogs/bin:$PATH" export PATH="/usr/local/opt/e2fsprogs/sbin:$PATH" diff --git a/Meta/sync.sh b/Meta/sync.sh deleted file mode 100755 index bc6f26b205..0000000000 --- a/Meta/sync.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -e - -script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P) - -sudo -E PATH="$PATH" "$script_path/build-image-qemu.sh" |