From 4b7a713b4d7670559e764b7d12d5a985fedccd4d Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 29 Sep 2015 20:28:04 +0200 Subject: [PATCH] fixed config writing --- hashboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hashboot.sh b/hashboot.sh index ce6c7ff..f8e0c5a 100755 --- a/hashboot.sh +++ b/hashboot.sh @@ -70,11 +70,11 @@ then fi #If not found, create one and ask for ${MBR_DEVICE} else - echo "Which device contains the MBR? [/dev/sda] " + echo -n "Which device contains the MBR? [/dev/sda] " read -r MBR_DEVICE [ -z "${MBR_DEVICE}" ] && MBR_DEVICE="/dev/sda" echo "#Device with the MBR on it" > ${CONFIG_FILE} - echo "mbr_device = ${MBR_DEVICE}" + echo "mbr_device = ${MBR_DEVICE}" >> ${CONFIG_FILE} fi #Write header