From e3d51b631b3ade83a34a7c0710357df45b227622 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 16 Nov 2021 20:22:17 +0200 Subject: [PATCH] add a sanity check --- .../build-fortune-mod-debian-package--using-docker.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/debian-packaging/build-fortune-mod-debian-package--using-docker.pl b/scripts/debian-packaging/build-fortune-mod-debian-package--using-docker.pl index 604ffa4..9663861 100644 --- a/scripts/debian-packaging/build-fortune-mod-debian-package--using-docker.pl +++ b/scripts/debian-packaging/build-fortune-mod-debian-package--using-docker.pl @@ -27,6 +27,10 @@ if ( !-e "$REPO/.git" ) { die "$REPO is not a git repository!"; } +if ( !-f "$REPO/debian/rules" ) +{ + die "$REPO is not a debian git repository!"; +} my $cwd = cwd; chdir "./$REPO"; $obj->do_system( { cmd => [ "git", "pull", "--ff-only", ] } ); -- 2.40.0