scripts/latest.sh: if file is unchanged, do not exit with an error

pull/1257/head
Felicity Tarnell 2015-05-01 14:07:24 +01:00
rodzic 9fa78bf21b
commit 8937ffd560
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -121,7 +121,7 @@ elif [ "$1" = "edit" -o "$1" = "vi" ]; then
$editor "${LTMP}"
if cmp "${LTMP}" "${LTMP2}" >/dev/null; then
printf >&2 -- '%s: no changes; exiting\n' "$0"
exit 1
exit
fi
diff -u "${LTMP2}" "${LTMP}"