Fix path of temporary script

This commit is contained in:
Manuel Thalmann 2023-04-01 14:07:20 +02:00
parent b48edb416b
commit 60bb50d5db

View file

@ -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;