]> granicus.if.org Git - fortune-mod/commitdiff
add a sanity check
authorShlomi Fish <shlomif@shlomifish.org>
Tue, 16 Nov 2021 18:22:17 +0000 (20:22 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Tue, 16 Nov 2021 18:22:17 +0000 (20:22 +0200)
scripts/debian-packaging/build-fortune-mod-debian-package--using-docker.pl

index 604ffa4e1414a5bfef826f7dd519791d4dccc1d4..9663861917dadc2372a7923bbf0d419ee33938f7 100644 (file)
@@ -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", ] } );