From e93d33835fc2078eafe5c4d923367e1e95f66822 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 27 Apr 2006 17:27:17 +0000 Subject: init level fix - Thanks, _Gandalf_ fix grep for file/symlink addition - Thanks, _Gandalf_ git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@26 880c04e9-e011-0410-abf7-b926e227c9cd --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions') diff --git a/functions b/functions index 8641ca1..f1a9c54 100644 --- a/functions +++ b/functions @@ -51,7 +51,7 @@ add_symlink () fil="${1}" dest="${fil##$BASEDIR}" add_dir $(dirname "${dest}") - if ! grep "slink ${fil} " "${FILELIST}" 2>&1 > /dev/null; then + if ! grep "slink ${dest} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding symlink ${dest}" echo "slink ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" fi @@ -77,7 +77,7 @@ add_file () add_dir $(dirname "${dest}") - if ! grep "file ${fil} " "${FILELIST}" 2>&1 > /dev/null; then + if ! grep "file ${dest} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding file ${dest}" echo "file ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" fi -- cgit v1.2.3-24-g4f1b