Thanks-to: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Dave Reisner <dreisner@archlinux.org> --- functions | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 8e3588a..54442c8 100644 --- a/functions +++ b/functions @@ -278,9 +278,9 @@ add_binary() { if [[ ! -L $sodep ]]; then _add_file "$sodep" "$BASEDIR$sodep" "$(stat -c %a "$sodep")" else - resolved=$(readlink -e "$basedir$sodep") + resolved=$(readlink -e "$BASEDIR$sodep") dirname=${resolved%/*} - _add_dir "${dirname#$basedir}" 755 + _add_dir "${dirname#$BASEDIR}" 755 _add_symlink "$sodep" "${resolved#$BASEDIR}" _add_file "${resolved#$BASEDIR}" "$resolved" 755 fi -- 1.7.5.4