From 379bd1b7de749f6cbf57f0e454c830839c465248 Mon Sep 17 00:00:00 2001 From: tonton Th Date: Tue, 28 Jan 2020 21:57:02 +0100 Subject: [PATCH] outfile format now configurable --- scripts/shoot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/shoot.sh b/scripts/shoot.sh index 5f436689..a1e25e34 100755 --- a/scripts/shoot.sh +++ b/scripts/shoot.sh @@ -10,7 +10,8 @@ NBRE=320 PERIOD=0.0 COUNT=compteur OPTIONS=" -v " -SHOW="n" +SHOW="no" +OFORMAT="P_%04d.pnm" # ------------------------------------ # overide parameters from $PWD @@ -34,7 +35,7 @@ if [ 1 -eq $# ] then outfile="$1" else - outfile=$( printf "P_%04d.pnm" $numero ) + outfile=$( printf ${OFORMAT} $numero ) fi # ------------------------------------