Ticket #28870: bournal.patch
File bournal.patch, 974 bytes (added by sepp@…, 14 years ago) |
---|
-
bournal
old new 1 1 #!/bin/bash 2 2 VERSION="Bournal 1.5, Codename: Sudo-cide" 3 3 4 unset LANG 5 unset LC_COLLATE 6 unset LC_CTYPE 7 unset LC_MESSAGES 8 unset LC_MONETARY 9 unset LC_NUMERIC 10 unset LC_TIME 11 4 12 # parameter check 5 13 if [ -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 6 14 echo 'Invalid parameter. Type bournal -h for help.' … … 166 174 167 175 posty () 168 176 { 169 EDCHK="$(md5 sum "$FILE" | cut -d" " -f1)"177 EDCHK="$(md5 "$FILE" | cut -d" " -f4)" 170 178 "$EDITOR" "$FILE" 171 EDCHK2="$(md5 sum "$FILE" | cut -d" " -f1)"179 EDCHK2="$(md5 "$FILE" | cut -d" " -f4)" 172 180 gpg --passphrase "$PASS" -c "$FILE" 2>/dev/null 173 181 rm -f "$FILE" 174 182 if [ "$EDCHK" = "$EDCHK2" ]; then