summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-02-09 12:08:58 +0100
committerDaniel Baumann <daniel@debian.org>2012-04-01 22:06:37 +0200
commitc86b5d49885f2e52e06f27569b666e68a81d860c (patch)
tree90d9e497afa5f62f2fffc86936b47ea31399a9a3 /scripts
parent13bb5656427cd5ad5475ceb48fe973c2f3b41f8c (diff)
downloadlive-boot-c86b5d49885f2e52e06f27569b666e68a81d860c.tar.gz
live-boot-c86b5d49885f2e52e06f27569b666e68a81d860c.zip
Workaround busybox's inability to detect symlinks with [ -e ].
link_files() won't remove symlinks at the destination, which could cause trouble.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index 3ec1e7b..3de16e5 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -596,14 +596,11 @@ link_files ()
fi
link_files "${src}" "${dest}" "${src_mask}"
else
- if [ -e "${dest}" ];
- then
- rm -rf "${dest}"
- fi
if [ -n "${src}" ];
then
src="$(echo ${src} | sed "s|^${src_mask}||")"
fi
+ rm -rf "${dest}" 2> /dev/null
ln -s "${src}" "${dest}"
fi
done