build-package.sh: use 'readlink' to get value of symlink

This commit is contained in:
Leonid Pliushch 2019-01-27 23:25:30 +02:00
parent ac9634c40a
commit 48ff3130cb
1 changed files with 1 additions and 1 deletions

View File

@ -1149,7 +1149,7 @@ termux_step_massage() {
while IFS= read -r -d '' file
do
local _link_value
_link_value=$(ls -l $file | cut -d ">" -f2 | tr -d " ")
_link_value=$(readlink $file)
rm $file
ln -s $_link_value.gz $file.gz
done < <(find share/man -type l -print0)