Commit a1465c46 authored by Sean McGovern's avatar Sean McGovern Committed by 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é's avatarRafaël Carré <>
parent 6ceee192
......@@ -34,7 +34,7 @@ fi
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment