diff options
| -rwxr-xr-x | type/__dtnrch_etax_flnp/manifest | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/type/__dtnrch_etax_flnp/manifest b/type/__dtnrch_etax_flnp/manifest index c7c8fca..aa69251 100755 --- a/type/__dtnrch_etax_flnp/manifest +++ b/type/__dtnrch_etax_flnp/manifest @@ -137,6 +137,15 @@ in exit 1 } test "$(cksum "${local_file}" | cut -d' ' -f1,2)" = "${CKSUM}" || { + # delete the bugged file so that the next run will download a + # fresh copy + case ${local_file-} + in + # security check + (${__type:?}/*.deb) + rm -f "${local_file:?}" ;; + esac + echo 'Checksums do not match.' >&2 exit 1 } |
