1 # Readlink is not present on some older distributions: emulate it.
5 if [ -L "$path" ]; then
6 ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
14 local old=$(readlink "$2")
15 [ "$old" = "$1" ] && return 0
16 echo "Changing symlink $2 from $old to $1"
17 elif [ -e "$2" ]; then
18 echo "Replacing file $2 with symlink to $1"