2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>

* util/grub-install.in (find_device): Fix the sed script.
This commit is contained in:
okuji committed 2003-02-19 23:26:46 +00:00
1 parent cd23d85031
commit df002327f6
3 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
#! /bin/sh
# Install GRUB on your drive.
# Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc.
# Copyright (C) 1999,2000,2001,2002,2003 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -193,7 +193,7 @@ find_device () {
# Resolve symlinks
while test -L $tmp_fname; do
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> %\1%p'`
tmp_new_fname=`ls -al $tmp_fname | sed -n 's%.*-> \(.*\)%\1%p'`
if test -z "$tmp_new_fname"; then
echo "Unrecognized ls output" 2>&1
exit 1