File: bashisms_690722.patch

package info (click to toggle)
service-wrapper-java 3.5.22-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,196 kB
  • ctags: 3,454
  • sloc: ansic: 23,282; java: 13,420; xml: 3,389; sh: 1,523; cpp: 32; makefile: 23
file content (28 lines) | stat: -rw-r--r-- 825 bytes parent folder | 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
28
Description: correct bashisms in daemon.sh script
Author: tony mancill <tmancill@debian.org>

--- a/src/bin/sh.script.in
+++ b/src/bin/sh.script.in
@@ -283,11 +283,11 @@
 then
     OS_VER=`sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*'`
     DIST_ARCH="universal"
-    if [[ "$OS_VER" < "10.5.0" ]]
+    if [ "$OS_VER" \< "10.5.0" ]
     then
         DIST_BITS="32"
     else
-        if [ "X`sysctl -n hw.cpu64bit_capable`" == "X1" ]  
+        if [ "X`sysctl -n hw.cpu64bit_capable`" = "X1" ]
         then
             DIST_BITS="64"
         else
@@ -966,7 +966,7 @@
     fi
     # If launchd is set to run the daemon already at Load, we don't need to call start
     getpid
-    if [ "X$pid" == "X" ] ; then
+    if [ "X$pid" = "X" ] ; then
         launchctl start ${APP_PLIST_BASE}
     fi