From 54fd0322ae780c13ab2804489a30944ca08cfa88 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 12 Jan 2010 00:41:46 +0100 Subject: Fix adding duplicate symlinks into the cpio image --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 7546088..7d692d9 100644 --- a/functions +++ b/functions @@ -92,7 +92,7 @@ add_symlink () dest="${2##$BASEDIR}" add_dir $(dirname "${dest}") add_dir $(dirname "${fil}") - if ! grep "slink ${dest} " "${FILELIST}" 2>&1 > /dev/null; then + if ! grep "slink ${fil} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding link ${fil} -> ${dest}" echo "slink ${fil} ${dest} $(stat -c '%a' ${1}) 0 0" >> "${FILELIST}" fi -- cgit v1.2.3-24-g4f1b