From 8f5975e42c5c31f9958af816ee0be8a724ac88fb Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 3 Feb 2020 16:27:26 +0530 Subject: fixed generate pdf issue --- latex/latex_test.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/latex/latex_test.sh b/latex/latex_test.sh index c2f885e..22dd0cc 100755 --- a/latex/latex_test.sh +++ b/latex/latex_test.sh @@ -114,12 +114,14 @@ fi if [ $col7 = S ] then - echo \\curlable{Exa~$col3} >> $CURDIR/TEX - echo \\begin{code} >> $CURDIR/TEX - echo \\tcaption{$col4}{$col4} >> $CURDIR/TEX - echo \\lstinputlisting{../$col6} >> $CURDIR/TEX - echo \\end{code} >> $CURDIR/TEX - echo >>$CURDIR/TEX + if [[ $col6 != *".zip"* ]]; then + echo \\curlable{Exa~$col3} >> $CURDIR/TEX + echo \\begin{code} >> $CURDIR/TEX + echo \\tcaption{$col4}{$col4} >> $CURDIR/TEX + echo \\lstinputlisting{../$col6} >> $CURDIR/TEX + echo \\end{code} >> $CURDIR/TEX + echo >>$CURDIR/TEX + fi fi # if [ $col7 = D ] -- cgit