From 36e5641f89d85cdf487110a265d1cdf6d53a64f5 Mon Sep 17 00:00:00 2001 From: va7eex Date: Sun, 19 Feb 2017 16:53:28 -0800 Subject: [PATCH] Update render.sh --- render.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render.sh b/render.sh index 00c2f8a..0ad7aa8 100644 --- a/render.sh +++ b/render.sh @@ -8,7 +8,8 @@ render_options_night=("MCIR") direction=${f:(-7):(-6)} echo $1 #remove the directory structure from the first argument -file="${1#'/tmp/'}" +f1="${1:0:(-4)}" +file="${f1#'/tmp/'}" #Isolate data values from filename file should begin with YYYYMMDD-HHMM dyear=${file:(0):(4)}