diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-04-26 00:28:34 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-04-26 00:28:34 +0200 |
commit | fb6331d8c177e608cf164fbebfb7f559f5ef067d (patch) | |
tree | 336147adbf5211f407f49712248d035e3752035b /functions | |
parent | 0958c0bcbad1a9db223225b9e69247e6b9c7a80c (diff) | |
download | mkinitcpio-fb6331d8c177e608cf164fbebfb7f559f5ef067d.tar.gz mkinitcpio-fb6331d8c177e608cf164fbebfb7f559f5ef067d.tar.xz |
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@17 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ add_symlink () if [ -L ${1} ]; then fil="${1}" dest="${fil##$BASEDIR}" - add_dir "${dest}" + add_dir $(dirname "${dest}") if ! grep "slink ${fil} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding symlink ${dest}" echo "slink ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" @@ -78,7 +78,7 @@ add_file () dest="${fil##$BASEDIR}" fi - add_dir "${dest}" + add_dir $(dirname "${dest}") if ! grep "file ${fil} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding file ${dest}" |