[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Remove use of SysV sed flag '-E'



Hello,

 Please accept this patch which replaces the single use of the SysV sed flag '-E' with the good ol' regular '-r' flag so that live-helper continues to work with GNU sed 4.1.x instead of requiring 4.2.x.

Cheers,

--
Cody A.W. Somerville
Software Systems Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1-781-850-2087
Cell: +1-613-401-5141
Email: cody.somerville@canonical.com
=== modified file 'helpers/lh_bootstrap_debootstrap'
--- helpers/lh_bootstrap_debootstrap	2009-11-11 15:30:42 +0000
+++ helpers/lh_bootstrap_debootstrap	2009-12-18 00:37:54 +0000
@@ -60,7 +60,7 @@
 if [ "${LH_CATEGORIES}" != "main" ]
 then
 	# Modify categories to remove leading/trailing whitespaces and replace other whitepspace with commas
-	DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components $(echo ${LH_CATEGORIES} | sed -E -e 's/^[ \t]*//;s/[ \t]*$//' -e 's/[ \t]+/,/g')"
+	DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components $(echo ${LH_CATEGORIES} | sed -r -e 's/^[ \t]*//;s/[ \t]*$//' -e 's/[ \t]+/,/g')"
 fi
 
 if [ -n "${LH_BOOTSTRAP_CONFIG}" ]


Reply to: