diff options
-rwxr-xr-x | release/install-stripped | 11 |
1 files changed, 8 insertions, 3 deletions
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 |