From 5150bc2eaa1e1e8d1430414c79b8d0ef033eba31 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 23:59:56 +0200 Subject: tests: remember to escape $ --- tests/fake-editor-change-password.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/fake-editor-change-password.sh b/tests/fake-editor-change-password.sh index 7d30bdb..0395af0 100755 --- a/tests/fake-editor-change-password.sh +++ b/tests/fake-editor-change-password.sh @@ -20,6 +20,6 @@ new_password="${FAKE_EDITOR_PASSWORD:-Hello World}" # And change only first line of file # -i.tmp allows editing file in place. Extension needed on Mac OSX -sed -i.tmp "1 s/^.*$/$new_password/g" "$filename" +sed -i.tmp "1 s/^.*\$/$new_password/g" "$filename" exit 0 -- cgit v1.2.3