summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions b/functions
index 7d54914..086e707 100644
--- a/functions
+++ b/functions
@@ -85,6 +85,7 @@ add_symlink ()
fil="${1}"
dest="${2##$BASEDIR}"
add_dir $(dirname "${dest}")
+ add_dir $(dirname "${fil}")
if ! grep "slink ${dest} " "${FILELIST}" 2>&1 > /dev/null; then
msg " adding link ${fil} -> ${dest}"
echo "slink ${fil} ${dest} $(stat -c '%a' ${fil}) 0 0" >> "${FILELIST}"