|
|
@@ -124,7 +124,9 @@ sub mkbody {
|
|
124
|
124
|
my $type = shift;
|
|
125
|
125
|
my $purpose = shift;
|
|
126
|
126
|
my $tmpl = "";
|
|
127
|
|
- $tmpl .= $templates->{$type}->{$purpose} if exists $templates->{$type};
|
|
|
127
|
+ $tmpl .= $templates->{$type}->{$purpose}
|
|
|
128
|
+ if exists $templates->{$type}
|
|
|
129
|
+ and exists $templates->{$type}->{$purpose};
|
|
128
|
130
|
return sprintf "#!%s\n%s\n", $bangs->{$type}, $tmpl;
|
|
129
|
131
|
}
|
|
130
|
132
|
|