Fix path of temporary script

This commit is contained in:
Manuel Thalmann 2023-04-01 14:07:20 +02:00
parent 388d507b93
commit 6ac71b04e1

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;