From 60bb50d5db9ecb709ec845bebdbef6863b1fe40b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 1 Apr 2023 14:07:20 +0200 Subject: [PATCH] Fix path of temporary script --- scripts/OS/Arch/setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/OS/Arch/setup.sh b/scripts/OS/Arch/setup.sh index 3c1fe94d4..f8a00fcfd 100755 --- a/scripts/OS/Arch/setup.sh +++ b/scripts/OS/Arch/setup.sh @@ -31,7 +31,8 @@ arch-chroot "$ARCH_MOUNT_ROOT" passwd; dir="$(realpath ../../..)"; scriptRoot="$(realpath --relative-to "$dir" "$(pwd)")"; +tempDir="/tmp/$(dirname "$dir")"; cp -r "$dir" "$ARCH_MOUNT_ROOT/tmp/"; -arch-chroot "$ARCH_MOUNT_ROOT" bash "$scriptRoot/../../Software/GRUB/install.sh"; +arch-chroot "$ARCH_MOUNT_ROOT" bash "$tempDir/$scriptRoot/../../Software/GRUB/install.sh"; popd > /dev/null;