summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions4
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