From 026405c92d3c207ba9ca0ac74b5318597320caf4 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 16 Jan 2020 19:39:03 +0000 Subject: script works in subdirectory now --- minimun | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minimun b/minimun index 3070174..c779069 100755 --- a/minimun +++ b/minimun @@ -24,10 +24,10 @@ foreach $pair (@pairs) { my ($in, $out); $in = "\n"; -if ($ENV{'PATH_INFO'} eq '/award.pdf'){ +if (index($ENV{'PATH_INFO'},'award.pdf') != -1){ $in .= "\\award{$FORM{'committee'}}{$FORM{'country'}}{$FORM{'award'}}{$FORM{'school'}}"; } -elsif ($ENV{'PATH_INFO'} eq '/room.pdf'){ +elsif (index($ENV{'PATH_INFO'},'room.pdf') != -1){ $in .= "\\room{$FORM{'committee'}}"; } else{ -- cgit