install-grub.pl: fix a double slash prefix bug

This commit is contained in:
Domen Kožar 2016-09-01 10:14:23 +02:00
parent 5e5b0d039c
commit 2a7293fd9d

View file

@ -140,7 +140,10 @@ my $driveid = 1;
sub GrubFs {
my ($dir) = @_;
my $fs = GetFs($dir);
my $path = "/" . substr($dir, length($fs->mount));
my $path = substr($dir, length($fs->mount));
if (substr($path, 0, 1) ne "/") {
$path = "/$path";
}
my $search = "";
if ($grubVersion > 1) {