/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-keygen

  • Committer: Teddy Hogeborn
  • Date: 2010-03-27 18:50:53 UTC
  • mfrom: (24.1.146 mandos)
  • Revision ID: teddy@fukt.bsnet.se-20100327185053-ht5xs10afawgx0sq
Merge from Björn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
        stty -echo
294
294
        echo -n "Enter passphrase: " >&2
295
295
        first="$(head --lines=1 | tr --delete '\n')"
296
 
        echo >&2
297
 
        echo -n "Repeat passphrase: " >&2
 
296
        echo -n -e "\nRepeat passphrase: " >&2
298
297
        second="$(head --lines=1 | tr --delete '\n')"
299
298
        echo >&2
300
299
        stty echo
301
300
        if [ "$first" != "$second" ]; then
302
 
            echo "Passphrase mismatch" >&2
 
301
            echo -e "Passphrase mismatch" >&2
303
302
            touch "$RINGDIR"/mismatch
304
303
        else
305
304
            echo -n "$first"