From 23530426b0f6c6c6a116373573b41a0ace1d6b3c Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 10 May 2006 22:21:55 +0000 Subject: 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 --- functions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions') 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}") -- cgit v1.2.3-24-g4f1b