Ticket #28870: bournal.patch

File bournal.patch, 974 bytes (added by sepp@…, 14 years ago)
  • bournal

    old new  
    11#!/bin/bash
    22VERSION="Bournal 1.5, Codename: Sudo-cide"
    33
     4unset LANG
     5unset LC_COLLATE
     6unset LC_CTYPE
     7unset LC_MESSAGES
     8unset LC_MONETARY
     9unset LC_NUMERIC
     10unset LC_TIME
     11
    412# parameter check
    513if [ -n "$1" -a "$1" != "-h" -a "$1" != "-i" -a "$1" != "-l" -a "$1" != "-ls" -a "$1" != "-lst" -a "$1" != "-d"  -a "$1" != "-f" -a "$1" != "-fi" -a "$1" != "-r" -a "$1" != "-p" -a "$1" != "--help" -a "$1" != "-v" -a "$1" != "--version" -a "$1" != "--heh" ]; then
    614   echo 'Invalid parameter. Type bournal -h for help.'
     
    166174
    167175posty ()
    168176{
    169   EDCHK="$(md5sum "$FILE" | cut -d" " -f1)"
     177  EDCHK="$(md5 "$FILE" | cut -d" " -f4)"
    170178  "$EDITOR" "$FILE"
    171   EDCHK2="$(md5sum "$FILE" | cut -d" " -f1)"
     179  EDCHK2="$(md5 "$FILE" | cut -d" " -f4)"
    172180  gpg --passphrase "$PASS" -c "$FILE" 2>/dev/null
    173181  rm -f "$FILE"
    174182  if [ "$EDCHK" = "$EDCHK2" ]; then