[SCM] live-boot branch, tmp-persistent-custom, updated. debian/3.0_a25-1-60-gbd73dfc

Tails developers amnesia at boum.org
Tue Mar 27 09:02:22 UTC 2012


The following commit has been merged in the tmp-persistent-custom branch:
commit 6081241a62ae4544560a936e30a629bd2150ba44
Author: Tails developers <amnesia at boum.org>
Date:   Mon Mar 26 19:21:40 2012 +0200

    Use trim_path() instead of custom sed stanza to trim /:es from paths.

diff --git a/scripts/live-helpers b/scripts/live-helpers
index d8bd613..ffc2025 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -1158,8 +1158,8 @@ link_files ()
 	# live-boot normally does (into $rootmnt)).
 
 	# remove multiple /:s and ensure ending on /
-	local src_dir="$(echo "${1}"/ | sed -e 's|/\+|/|g')"
-	local dest_dir="$(echo "${2}"/ | sed -e 's|/\+|/|g')"
+	local src_dir="$(trim_path ${1})/"
+	local dest_dir="$(trim_path ${2})/"
 	local src_mask="${3}"
 
 	# This check can only trigger on the inital, non-recursive call since

-- 
live-boot



More information about the debian-live-changes mailing list