aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-05-25 04:26:59 +0800
committerJesús <heckyel@hyperbola.info>2022-05-25 04:26:59 +0800
commit726e842a6bb9d67c831b699ca8dec8a23658191b (patch)
tree93222f996a754bb29e1bcaff60c4a03e3983cd0d
parent62634abe851608541505a6a80cbf3a0e5c38b8ae (diff)
downloadhyperfi-726e842a6bb9d67c831b699ca8dec8a23658191b.tar.lz
hyperfi-726e842a6bb9d67c831b699ca8dec8a23658191b.tar.xz
hyperfi-726e842a6bb9d67c831b699ca8dec8a23658191b.zip
shellcheck step 11
-rw-r--r--hyperfi4
1 files changed, 2 insertions, 2 deletions
diff --git a/hyperfi b/hyperfi
index 428387d..5e05823 100644
--- a/hyperfi
+++ b/hyperfi
@@ -1372,8 +1372,8 @@ archgrubinstall(){
if [ "${luksroot}" = "1" ]; then
if (whiptail --backtitle "${apptitle}" --title "${txtinstall//%1/grub}" --yesno "${txtgrubluksdetected}" 0 0) ; then
clear
- echo "sed -i /GRUB_CMDLINE_LINUX=/c\GRUB_CMDLINE_LINUX=\\\"cryptdevice=/dev/disk/by-uuid/${luksrootuuid}:root\\\" /mnt/etc/default/grub"
- sed -i /GRUB_CMDLINE_LINUX=/c\GRUB_CMDLINE_LINUX=\"cryptdevice=/dev/disk/by-uuid/${luksrootuuid}:root\" /mnt/etc/default/grub
+ echo "sed -e \"s|GRUB_CMDLINE_LINUX=\\\"\\\"|GRUB_CMDLINE_LINUX=\\\"cryptdevice=/dev/disk/by-uuid/${luksrootuuid}:root\\\"|g\" -i /mnt/etc/default/grub"
+ sed -e "s|GRUB_CMDLINE_LINUX=\"\"|GRUB_CMDLINE_LINUX=\"cryptdevice=/dev/disk/by-uuid/${luksrootuuid}:root\"|g" -i /mnt/etc/default/grub
pressanykey
fi
fi