summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-06-27 01:11:20 +0200
committerDave Reisner <dreisner@archlinux.org>2011-06-27 02:21:49 +0200
commitf00e41b98d2d3a89e36763a4c613d16bbe6e216c (patch)
treeb34c9915403d31dbe761b6e1c94e3f74f5362a79 /functions
parent457db1af9f697a6dff4189cb46031688c78a61dc (diff)
downloadmkinitcpio-f00e41b98d2d3a89e36763a4c613d16bbe6e216c.tar.gz
mkinitcpio-f00e41b98d2d3a89e36763a4c613d16bbe6e216c.tar.xz
functions: s/basedir/BASEDIR/
Thanks-to: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-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