From 7c7c65d3ec45db074295e8ec719ce3512f25ca80 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Thu, 11 Nov 2021 08:33:29 +0200 Subject: [PATCH] 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 b2d22ce..604ffa4 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 @@ -23,6 +23,10 @@ if ( !-e $REPO ) { $obj->do_system( { cmd => [ "git", "clone", $URL, ] } ); } +if ( !-e "$REPO/.git" ) +{ + die "$REPO is not a git repository!"; +} my $cwd = cwd; chdir "./$REPO"; $obj->do_system( { cmd => [ "git", "pull", "--ff-only", ] } ); -- 2.40.0