From 037fc856d391cb0c9307728154dd4b2253e5e530 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Fri, 21 Feb 2020 11:31:40 +0100 Subject: #953 ogGrubDefaultEntry: Fixes the bad substitution that did not force the condition to match the whole line. --- client/engine/Boot.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib index 2ca6577a..81f28f83 100755 --- a/client/engine/Boot.lib +++ b/client/engine/Boot.lib @@ -1915,7 +1915,7 @@ if [ "$(basename $CFGFILE)" == "refind.conf" ]; then else # En grub y burg las líneas empiezan a contar desde cero let MENUENTRY=$MENUENTRY-1 - sed --regexp-extended -i s/"set default=\"?[0-9]*\"?"/"set default=\"$MENUENTRY\""/g $CFGFILE + sed --regexp-extended -i s/"set default=\"?[0-9]*\"?$"/"set default=\"$MENUENTRY\""/g $CFGFILE fi MSG="MSG_HELP_$FUNC" echo "${!MSG%%\.}: $@" -- cgit v1.2.3-18-g5258