move all bash to ash shell scripts for drools-apps 44/114944/3
authorTaka Cho <takamune.cho@att.com>
Mon, 16 Nov 2020 15:48:39 +0000 (10:48 -0500)
committerTaka Cho <takamune.cho@att.com>
Mon, 16 Nov 2020 21:31:26 +0000 (16:31 -0500)
this gerrit would be the first step
to not to use any GPL-3.0 and plus license

Issue-ID: POLICY-2847
Change-Id: I6787af6afd4a90d09d3cca86fa2ee7c5b6ea4eb0
Signed-off-by: Taka Cho <takamune.cho@att.com>
controlloop/common/feature-controlloop-utils/src/main/feature/install/disable
controlloop/common/feature-controlloop-utils/src/main/feature/install/enable
controlloop/packages/docker-controlloop/src/main/resources/pdpd-cl-entrypoint.sh

index f5cab0e..2cbf8b6 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env ash
 
 ###
 # ============LICENSE_START=======================================================
@@ -23,7 +23,7 @@
 for actor in AAI GUARD SO SDNC VFC
 do
     FILE=${POLICY_HOME}/config/${actor}-http-client.properties
-    if [[ -f ${FILE}.ofc ]]; then
+    if [ -f "${FILE}.ofc" ]; then
         mv $FILE.ofc $FILE
     fi
-done
\ No newline at end of file
+done
index 682f05e..4011b7d 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/usr/bin/env ash
 
 ###
 # ============LICENSE_START=======================================================
@@ -27,7 +27,7 @@
 for actor in AAI SO SDNC VFC GUARD
 do
     FILE=${POLICY_HOME}/config/${actor}-http-client.properties
-    if [[ ! -f ${FILE}.ofc ]]; then
+    if [ ! -f "${FILE}.ofc" ]; then
         mv ${FILE} ${FILE}.ofc
     fi
 done
index 6ec9e1d..2e4691e 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env ash
 
 # ########################################################################
 # Copyright 2019-2020 AT&T Intellectual Property. All rights reserved
@@ -16,7 +16,7 @@
 # limitations under the License.
 # ########################################################################
 
-if [[ ${DEBUG} == y ]]; then
+if [ "${DEBUG}" = "y" ]; then
     echo "-- $0 $* --"
     set -x
 fi