minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-16 22:40:27 +03:00
parent 6ba981e3dd
commit 6845c059fe

View File

@ -287,9 +287,9 @@ getTemplate(){
TEMPLATE=($SPREAD/*-$TYPE.tpl) TEMPLATE=($SPREAD/*-$TYPE.tpl)
if ! [ -z $TEMPLATE ] ; then if ! [ -z $TEMPLATE ] ; then
#TEMPLATE=${TEMPLATE_DIR}/$(echo "${TEMPLATE[0]}" \ #TEMPLATE=${TEMPLATE_DIR}/$(echo "${TEMPLATE[0]}" \
# | sed -e "s/$SPREAD\///" \ # | sed -e "s/$S{PREAD}\///" \
# -e 's/^[0-9]\+-//' \ # -e 's/^[0-9]\+-//' \
# -e "s/-${TYPE}.*$//") # -e "s/-${TYPE}\.*$//").tex
TEMPLATE=${TEMPLATE/$SPREAD\//} TEMPLATE=${TEMPLATE/$SPREAD\//}
TEMPLATE=${TEMPLATE/[0-9]-/} TEMPLATE=${TEMPLATE/[0-9]-/}
TEMPLATE="$TEMPLATE_DIR/${TEMPLATE[0]%-${TYPE}.*}.tex" TEMPLATE="$TEMPLATE_DIR/${TEMPLATE[0]%-${TYPE}.*}.tex"