From ca6b5037fcbd94ac4d882e407b5ce605c6e57dfd Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 25 Nov 2021 18:07:36 -0600 Subject: [PATCH] Proper overwriting --- Misc/Arch-LuksCrpy-Install.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/Arch-LuksCrpy-Install.bash b/Misc/Arch-LuksCrpy-Install.bash index 93fdea0..324394f 100755 --- a/Misc/Arch-LuksCrpy-Install.bash +++ b/Misc/Arch-LuksCrpy-Install.bash @@ -310,7 +310,7 @@ __EOF__ else echo "${REPLY}" fi - done <<< "$(cat /etc/mkinitcpio.conf)" > /etc/mkinitcpio.conf + done <<< "$(cat /etc/mkinitcpio.conf)" > mkinitcpio.tmp && mv mkinitcpio.tmp /etc/mkinitcpio.conf mkinitcpio -P @@ -335,7 +335,7 @@ __EOF__ else echo "${REPLY}" fi - done <<< "$(cat /etc/default/grub)" > /etc/default/grub + done <<< "$(cat /etc/default/grub)" > grub.tmp && mv grub.tmp /etc/default/grub grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg