File: fix-bashisms.patch

package info (click to toggle)
metview 5.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 614,356 kB
  • sloc: cpp: 560,586; ansic: 44,641; xml: 19,933; f90: 17,984; sh: 7,454; python: 5,565; yacc: 2,318; lex: 1,372; perl: 701; makefile: 87
file content (25 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (3)
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
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Remove bashisms to that we can use the dash shell
Last-Updated: 2016-02-14
Forwarded: no

--- a/metview/scripts/logrun
+++ b/metview/scripts/logrun
@@ -31,12 +31,14 @@
   # -- 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