From 4a9da3960914df0aef1217790b6dbc01d6b02220 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 5 Mar 2023 16:17:56 +0100 Subject: add some Ubuntu scripts --- src/ubuntu/check-package-integrity.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 src/ubuntu/check-package-integrity.sh (limited to 'src/ubuntu/check-package-integrity.sh') diff --git a/src/ubuntu/check-package-integrity.sh b/src/ubuntu/check-package-integrity.sh new file mode 100755 index 0000000..39e01dd --- /dev/null +++ b/src/ubuntu/check-package-integrity.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe + +if ! command -v debsums &> /dev/null; then + echo 'Where is debsums?' >&2 + exit 1 +fi + +debsums -ca -- cgit v1.2.3