summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-01-12 00:41:46 +0100
committerThomas Bächler <thomas@archlinux.org>2010-01-12 00:42:12 +0100
commit54fd0322ae780c13ab2804489a30944ca08cfa88 (patch)
tree74ef8a89c18eebdd33e1b08bf8f43cb876cb423c
parent4b482b42467b43fb43755a8c5200d81063f9d80d (diff)
downloadmkinitcpio-54fd0322ae780c13ab2804489a30944ca08cfa88.tar.gz
mkinitcpio-54fd0322ae780c13ab2804489a30944ca08cfa88.tar.xz
Fix adding duplicate symlinks into the cpio image
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
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