summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/live-helpers6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 860e6ff..5306cf5 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -1187,12 +1187,14 @@ link_files ()
fi
link_files "${src}" "${dest}" "${src_mask}"
else
+ local final_src=${src}
if [ -n "${src_mask}" ]
then
- src="$(echo ${src} | sed "s|^${src_mask}||")"
+ final_src="$(echo ${final_src} | sed "s|^${src_mask}||")"
fi
rm -rf "${dest}" 2> /dev/null
- ln -s "${src}" "${dest}"
+ ln -s "${final_src}" "${dest}"
+ chown_ref "${src}" "${dest}"
fi
done
}