From 3849b77c25aea056b6ef27ad212b07b7777216a7 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 12 Jul 1996 19:18:20 +0000 Subject: (makelocalhardlink): Only do cleverness if TO already exists. If it's not there, just make the link. --- release/install-stripped | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'release') diff --git a/release/install-stripped b/release/install-stripped index f972fc54..bd841b37 100755 --- a/release/install-stripped +++ b/release/install-stripped @@ -94,9 +94,14 @@ copy() makelocalhardlink () { - fromino=`ls -dli "$from" | awk '{ print $1 }'` - toino=`ls -dli "$to" | awk '{print $1 }'` - if test $fromino != $toino; then + if test -e $to; then + fromino=`ls -dli "$from" | awk '{ print $1 }'` + toino=`ls -dli "$to" | awk '{print $1 }'` + if test $fromino != $toino; then + echo "$to linked to $old_inode" + ln -f $old_inode $to + fi + else echo "$to linked to $old_inode" ln -f $old_inode $to fi -- cgit v1.2.3