[vlc-commits] check_sed: improve compatibility of cleanup.
Robert Mourning
git at videolan.org
Sat Jun 3 13:49:01 CEST 2017
vlc | branch: master | Robert Mourning <robedmo.git at gmail.com> | Tue May 30 19:56:04 2017 -0400| [47dab665165b06f5eb558d24791c39410d8275aa] | committer: Jean-Baptiste Kempf
check_sed: improve compatibility of cleanup.
Replaces curly brace expansion with explicit enumeration.
There exists at least one "sh" implementation which does not
support the curly-brace syntax in the removed line.
Also adds quotes around $tmp expansion, in case `pwd` contains spaces.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47dab665165b06f5eb558d24791c39410d8275aa
---
extras/tools/bootstrap | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index e60e5ebf93..d388fa99a1 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -34,7 +34,7 @@ fi
check_sed() {
tmp="`pwd`/check_sed"
-trap "rm $tmp{,-e} 2>/dev/null" EXIT
+trap "rm \"$tmp\" \"$tmp-e\" 2>/dev/null" EXIT
echo "test file for GNU sed" > $tmp
if ! sed -i -e 's/sed//' $tmp >/dev/null 2>&1
then
More information about the vlc-commits
mailing list