From d09db069aeb4c0cdd2c4c58e7d98ae998ae66e17 Mon Sep 17 00:00:00 2001 From: Sir_Yaro Date: Fri, 31 Dec 2021 16:12:37 +0100 Subject: [PATCH] old module fix --- arrange_data/scripts/poker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arrange_data/scripts/poker.sh b/arrange_data/scripts/poker.sh index 5e02048..d23c17c 100644 --- a/arrange_data/scripts/poker.sh +++ b/arrange_data/scripts/poker.sh @@ -4,6 +4,10 @@ page=`echo $1|rev|cut -f1 -d";"|rev` pliki=`echo $1|rev|cut -d";" -f2-|rev` +if [ `tr -dc ';'<<<$pliki| wc -c` -eq 0 ]; then + pliki="${pliki};" +fi + plik=`echo $pliki|cut -f1 -d";"`; if [ "$plik" != "" ]; then composite -verbose -geometry +152+137 $plik /tmp/montage.png /tmp/montage.png;fi plik=`echo $pliki|cut -f2 -d";"`; if [ "$plik" != "" ]; then composite -verbose -geometry +896+137 $plik /tmp/montage.png /tmp/montage.png;fi plik=`echo $pliki|cut -f3 -d";"`; if [ "$plik" != "" ]; then composite -verbose -geometry +1640+137 $plik /tmp/montage.png /tmp/montage.png;fi