summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-05-11 00:21:55 +0200
committerAaron Griffin <aaron@archlinux.org>2006-05-11 00:21:55 +0200
commit23530426b0f6c6c6a116373573b41a0ace1d6b3c (patch)
tree169597099c4d64eb639299d328fc5a4389e90be6
parent11ad649e6e6f3a7999225ca6f2d54f661bde5d1a (diff)
downloadmkinitcpio-23530426b0f6c6c6a116373573b41a0ace1d6b3c.tar.gz
mkinitcpio-23530426b0f6c6c6a116373573b41a0ace1d6b3c.tar.xz
Fix add_file directory parsing when using -b (base dir)
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@96 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions b/functions
index 3db6e02..beb4a3e 100644
--- a/functions
+++ b/functions
@@ -95,6 +95,9 @@ add_file ()
dest="${2}"
else
dest="${fil##$BASEDIR}"
+ if [ "${dest:0:1}" != "/" ]; then
+ dest="/${dest}"
+ fi
fi
add_dir $(dirname "${dest}")