diff options
-rwxr-xr-x | tests/fake-editor-change-password.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |