directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [44/46] directory-kerby git commit: Minor fixup for scripts for *nix
Date Wed, 09 Sep 2015 01:37:05 GMT
Minor fixup for scripts for *nix


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/4cc13b91
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/4cc13b91
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/4cc13b91

Branch: refs/heads/pkinit-support
Commit: 4cc13b91535a393fdf4ef60098a8204a66f3d84c
Parents: b571be3
Author: drankye <kai.zheng@intel.com>
Authored: Mon Sep 7 16:30:57 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Mon Sep 7 16:30:57 2015 +0800

----------------------------------------------------------------------
 kerby-dist/kdc-dist/bin/kadmin.sh    | 7 +++----
 kerby-dist/kdc-dist/bin/kdcinit.sh   | 7 +++----
 kerby-dist/kdc-dist/bin/start-kdc.sh | 7 +++----
 kerby-dist/tool-dist/bin/kinit.sh    | 7 +++----
 kerby-dist/tool-dist/bin/klist.sh    | 7 +++----
 5 files changed, 15 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4cc13b91/kerby-dist/kdc-dist/bin/kadmin.sh
----------------------------------------------------------------------
diff --git a/kerby-dist/kdc-dist/bin/kadmin.sh b/kerby-dist/kdc-dist/bin/kadmin.sh
index 7c22f82..3a6b802 100644
--- a/kerby-dist/kdc-dist/bin/kadmin.sh
+++ b/kerby-dist/kdc-dist/bin/kadmin.sh
@@ -1,4 +1,5 @@
-#
+#!/usr/bin/env bash
+
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -14,13 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-#!/bin/bash
 
 DEBUG=
 args=
 for var in $*; do
-  if [ $var == "-D" ]; then
+  if [ X"$var" == X"-D" ]; then
     DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y"
   else
     args="$args $var"

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4cc13b91/kerby-dist/kdc-dist/bin/kdcinit.sh
----------------------------------------------------------------------
diff --git a/kerby-dist/kdc-dist/bin/kdcinit.sh b/kerby-dist/kdc-dist/bin/kdcinit.sh
index 8681112..0dca1b8 100644
--- a/kerby-dist/kdc-dist/bin/kdcinit.sh
+++ b/kerby-dist/kdc-dist/bin/kdcinit.sh
@@ -1,4 +1,5 @@
-#
+#!/usr/bin/env bash
+
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -14,13 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-#!/bin/bash
 
 DEBUG=
 args=
 for var in $*; do
-  if [ $var == "-D" ]; then
+  if [ X"$var" == X"-D" ]; then
     DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=y"
   else
     args="$args $var"

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4cc13b91/kerby-dist/kdc-dist/bin/start-kdc.sh
----------------------------------------------------------------------
diff --git a/kerby-dist/kdc-dist/bin/start-kdc.sh b/kerby-dist/kdc-dist/bin/start-kdc.sh
index efb898f..5d85aae 100644
--- a/kerby-dist/kdc-dist/bin/start-kdc.sh
+++ b/kerby-dist/kdc-dist/bin/start-kdc.sh
@@ -1,4 +1,5 @@
-#
+#!/usr/bin/env bash
+
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -14,13 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-#!/bin/bash
 
 DEBUG=
 args=
 for var in $*; do
-  if [ $var == "-D" ]; then
+  if [ X"$var" == X"-D" ]; then
     DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
   else
     args="$args $var"

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4cc13b91/kerby-dist/tool-dist/bin/kinit.sh
----------------------------------------------------------------------
diff --git a/kerby-dist/tool-dist/bin/kinit.sh b/kerby-dist/tool-dist/bin/kinit.sh
index 8ad3f31..427a5c9 100644
--- a/kerby-dist/tool-dist/bin/kinit.sh
+++ b/kerby-dist/tool-dist/bin/kinit.sh
@@ -1,4 +1,5 @@
-#
+#!/usr/bin/env bash
+
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -14,13 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-#!/bin/bash
 
 DEBUG=
 args=
 for var in $*; do
-  if [ $var == "-D" ]; then
+  if [ X"$var" == X"-D" ]; then
     DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8002,server=y,suspend=y"
   else
     args="$args $var"

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/4cc13b91/kerby-dist/tool-dist/bin/klist.sh
----------------------------------------------------------------------
diff --git a/kerby-dist/tool-dist/bin/klist.sh b/kerby-dist/tool-dist/bin/klist.sh
index a81de88..4bd0a99 100644
--- a/kerby-dist/tool-dist/bin/klist.sh
+++ b/kerby-dist/tool-dist/bin/klist.sh
@@ -1,4 +1,5 @@
-#
+#!/usr/bin/env bash
+
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -14,13 +15,11 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-#
-#!/bin/bash
 
 DEBUG=
 args=
 for var in $*; do
-  if [ $var == "-D" ]; then
+  if [ X"$var" == X"-D" ]; then
     DEBUG="-Xdebug -Xrunjdwp:transport=dt_socket,address=8004,server=y,suspend=y"
   else
     args="$args $var"


Mime
View raw message