version 1.76, 2015/05/03 00:27:53 |
version 1.77, 2015/05/03 01:11:52 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: update_openbsd,v 1.75 2015/05/02 23:27:01 andrew Exp $ |
# $AFresh1: update_openbsd,v 1.76 2015/05/02 23:27:53 andrew Exp $ |
# |
# |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# Copyright (c) 2012 Andrew Fresh <andrew@afresh1.com> |
# |
# |
|
|
local _file=$1 |
local _file=$1 |
# This could go circular, but I dunno how to fix that. |
# This could go circular, but I dunno how to fix that. |
if [ -h $_file ]; then |
if [ -h $_file ]; then |
follow_symlink $( file $_file | |
follow_symlink $( readlink -f $_file ) |
grep 'symbolic link' | |
|
sed -e s/^.*\\\`// -e s/\\\'\$// ) |
|
else |
else |
echo $_file |
echo $_file |
fi |
fi |