From 52647222f0794492853769bb2fa89474968e0418 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 28 Oct 2022 22:06:24 -0500 Subject: [PATCH] Remove temporary scaffolding --- gatekeeper.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index 708f3b4..6ac1abc 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1899,9 +1899,6 @@ sub validate_commands { my $stem = substr $packet->[0],0,-(length '.directive.asc'); my $op_header = $ops->[0][1]; - # scaffolding to be removed later - my $directive_only = (1 == scalar @$packet); - # They have to specify a version fatal("no version directive specified in $stem.directive.asc",1) unless defined $op_header->{version}; @@ -1920,7 +1917,7 @@ sub validate_commands { # Check that we actually have at least one command in the directive unless ($#$ops > 0) { - if ($directive_only) { + if (1 == scalar @$packet) { fatal("nothing to do - no commands in directive file",1); } else { # Provide a different message if this looks like an upload packet. -- 2.25.1