vlc | branch: master | Sean McGovern <[email protected]> | Wed Apr 16 02:53:00 
2014 -0400| [a1465c46ccaec092781b6ca972fade8f480da2f7] | committer: Rafaël Carré

tools: clean up after sed test

Some implementations of sed blindly take the argument following
-i to be the file extension for the backup during an in-place edit.

Signed-off-by: Rafaël Carré <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1465c46ccaec092781b6ca972fade8f480da2f7
---

 extras/tools/bootstrap |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index f1b1981..28bad24 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -34,7 +34,7 @@ fi
 
 check_sed() {
 tmp="`pwd`/check_sed"
-trap "rm $tmp" EXIT
+trap "rm $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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to