Package: metview / 5.10.2-1

fix-bashisms.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Remove bashisms to that we can use the dash shell
Last-Updated: 2016-02-14
Forwarded: no

Index: metview-5.10.0/metview/scripts/logrun
===================================================================
--- metview-5.10.0.orig/metview/scripts/logrun
+++ metview-5.10.0/metview/scripts/logrun
@@ -31,12 +31,14 @@ else
   # -- create log file --
   echo "[logrun info] process $$ starting `date` with cmd:" > $MYLOG
   echo "[logrun info] $@"                        >> $MYLOG
-  echo "[logrun info] mode is $METVIEW_MODE\n"   >> $MYLOG
-
+  echo "[logrun info] mode is $METVIEW_MODE"     >> $MYLOG
+  echo ""                                        >> $MYLOG
+  
   "$@"                                           >> $MYLOG
   SUCCESS_STATUS=$?
 
-  echo "\n[logrun info] process $$ ended `date`" >> $MYLOG
+  echo ""                                        >> $MYLOG
+  echo "[logrun info] process $$ ended `date`" >> $MYLOG
   echo "[logrun info] exit status: $SUCCESS_STATUS" >> $MYLOG
 fi