You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by an...@apache.org on 2018/05/25 12:03:59 UTC

oozie git commit: OOZIE-2352 Unportable shebang in shell scripts (dbist13 via andras.piros)

Repository: oozie
Updated Branches:
  refs/heads/master 12c863e5b -> eba35f010


OOZIE-2352 Unportable shebang in shell scripts (dbist13 via andras.piros)


Project: http://git-wip-us.apache.org/repos/asf/oozie/repo
Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/eba35f01
Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/eba35f01
Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/eba35f01

Branch: refs/heads/master
Commit: eba35f0108fa762559a2ffd229f76a6258a09b2b
Parents: 12c863e
Author: Andras Piros <an...@cloudera.com>
Authored: Fri May 25 14:03:33 2018 +0200
Committer: Andras Piros <an...@cloudera.com>
Committed: Fri May 25 14:03:33 2018 +0200

----------------------------------------------------------------------
 bin/create-release-artifact                       | 2 +-
 bin/mkdistro.sh                                   | 2 +-
 bin/test-patch                                    | 2 +-
 bin/test-patch-00-clean                           | 2 +-
 bin/test-patch-05-patch-raw-analysis              | 2 +-
 bin/test-patch-08-rat                             | 2 +-
 bin/test-patch-09-javadoc                         | 2 +-
 bin/test-patch-10-compile                         | 2 +-
 bin/test-patch-11-findbugs-diff                   | 2 +-
 bin/test-patch-15-backwards-compatibility         | 2 +-
 bin/test-patch-20-tests                           | 2 +-
 bin/test-patch-30-distro                          | 2 +-
 bin/test-patch-XX-template                        | 2 +-
 bin/test-patch-find-new-patch-available-jiras     | 2 +-
 client/src/main/bin/oozie                         | 2 +-
 core/src/main/conf/oozie-env.sh                   | 2 +-
 core/src/main/resources/ssh-wrapper.sh            | 2 +-
 distro/src/main/bin/addtowar.sh                   | 2 +-
 distro/src/main/bin/oozie-jetty-server.sh         | 2 +-
 distro/src/main/bin/oozie-run.sh                  | 2 +-
 distro/src/main/bin/oozie-setup.sh                | 2 +-
 distro/src/main/bin/oozie-start.sh                | 2 +-
 distro/src/main/bin/oozie-stop.sh                 | 2 +-
 distro/src/main/bin/oozie-sys.sh                  | 2 +-
 distro/src/main/bin/oozied.sh                     | 2 +-
 release-log.txt                                   | 1 +
 source-headers.txt                                | 2 +-
 tools/src/main/bin/oozie-diag-bundle-collector.sh | 2 +-
 tools/src/main/bin/ooziedb.sh                     | 2 +-
 29 files changed, 29 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/create-release-artifact
----------------------------------------------------------------------
diff --git a/bin/create-release-artifact b/bin/create-release-artifact
index e017b3b..86d4d5d 100755
--- a/bin/create-release-artifact
+++ b/bin/create-release-artifact
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/mkdistro.sh
----------------------------------------------------------------------
diff --git a/bin/mkdistro.sh b/bin/mkdistro.sh
index e0cff36..550780c 100755
--- a/bin/mkdistro.sh
+++ b/bin/mkdistro.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch
----------------------------------------------------------------------
diff --git a/bin/test-patch b/bin/test-patch
index 4614978..ce74d70 100755
--- a/bin/test-patch
+++ b/bin/test-patch
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-00-clean
----------------------------------------------------------------------
diff --git a/bin/test-patch-00-clean b/bin/test-patch-00-clean
index d200986..ee0ca96 100755
--- a/bin/test-patch-00-clean
+++ b/bin/test-patch-00-clean
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-05-patch-raw-analysis
----------------------------------------------------------------------
diff --git a/bin/test-patch-05-patch-raw-analysis b/bin/test-patch-05-patch-raw-analysis
index 1f231f2..cec7138 100755
--- a/bin/test-patch-05-patch-raw-analysis
+++ b/bin/test-patch-05-patch-raw-analysis
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-08-rat
----------------------------------------------------------------------
diff --git a/bin/test-patch-08-rat b/bin/test-patch-08-rat
index 7eea74a..2df19c0 100755
--- a/bin/test-patch-08-rat
+++ b/bin/test-patch-08-rat
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-09-javadoc
----------------------------------------------------------------------
diff --git a/bin/test-patch-09-javadoc b/bin/test-patch-09-javadoc
index 2a16b0c..a272b7c 100755
--- a/bin/test-patch-09-javadoc
+++ b/bin/test-patch-09-javadoc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-10-compile
----------------------------------------------------------------------
diff --git a/bin/test-patch-10-compile b/bin/test-patch-10-compile
index 949a46c..59c94e0 100755
--- a/bin/test-patch-10-compile
+++ b/bin/test-patch-10-compile
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-11-findbugs-diff
----------------------------------------------------------------------
diff --git a/bin/test-patch-11-findbugs-diff b/bin/test-patch-11-findbugs-diff
index 8001bb8..c884daa 100755
--- a/bin/test-patch-11-findbugs-diff
+++ b/bin/test-patch-11-findbugs-diff
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-15-backwards-compatibility
----------------------------------------------------------------------
diff --git a/bin/test-patch-15-backwards-compatibility b/bin/test-patch-15-backwards-compatibility
index bf0f21f..0023261 100755
--- a/bin/test-patch-15-backwards-compatibility
+++ b/bin/test-patch-15-backwards-compatibility
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-20-tests
----------------------------------------------------------------------
diff --git a/bin/test-patch-20-tests b/bin/test-patch-20-tests
index e8cb96e..65f9f4a 100755
--- a/bin/test-patch-20-tests
+++ b/bin/test-patch-20-tests
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-30-distro
----------------------------------------------------------------------
diff --git a/bin/test-patch-30-distro b/bin/test-patch-30-distro
index fbfe7b9..f72d516 100755
--- a/bin/test-patch-30-distro
+++ b/bin/test-patch-30-distro
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-XX-template
----------------------------------------------------------------------
diff --git a/bin/test-patch-XX-template b/bin/test-patch-XX-template
index 71f7996..6a11297 100755
--- a/bin/test-patch-XX-template
+++ b/bin/test-patch-XX-template
@@ -1,4 +1,4 @@
-!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/bin/test-patch-find-new-patch-available-jiras
----------------------------------------------------------------------
diff --git a/bin/test-patch-find-new-patch-available-jiras b/bin/test-patch-find-new-patch-available-jiras
index 0d493d5..c5a7c8d 100755
--- a/bin/test-patch-find-new-patch-available-jiras
+++ b/bin/test-patch-find-new-patch-available-jiras
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/client/src/main/bin/oozie
----------------------------------------------------------------------
diff --git a/client/src/main/bin/oozie b/client/src/main/bin/oozie
index 88b06e8..b8db5ee 100644
--- a/client/src/main/bin/oozie
+++ b/client/src/main/bin/oozie
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/core/src/main/conf/oozie-env.sh
----------------------------------------------------------------------
diff --git a/core/src/main/conf/oozie-env.sh b/core/src/main/conf/oozie-env.sh
index 3cdfbe2..f03baee 100644
--- a/core/src/main/conf/oozie-env.sh
+++ b/core/src/main/conf/oozie-env.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/core/src/main/resources/ssh-wrapper.sh
----------------------------------------------------------------------
diff --git a/core/src/main/resources/ssh-wrapper.sh b/core/src/main/resources/ssh-wrapper.sh
index 9dff4e7..e2e6f7f 100644
--- a/core/src/main/resources/ssh-wrapper.sh
+++ b/core/src/main/resources/ssh-wrapper.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/addtowar.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/addtowar.sh b/distro/src/main/bin/addtowar.sh
index 688ba6b..9b05124 100644
--- a/distro/src/main/bin/addtowar.sh
+++ b/distro/src/main/bin/addtowar.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-jetty-server.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-jetty-server.sh b/distro/src/main/bin/oozie-jetty-server.sh
index 228a5c1..711b521 100644
--- a/distro/src/main/bin/oozie-jetty-server.sh
+++ b/distro/src/main/bin/oozie-jetty-server.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-run.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-run.sh b/distro/src/main/bin/oozie-run.sh
index 8d40170..7336cb9 100755
--- a/distro/src/main/bin/oozie-run.sh
+++ b/distro/src/main/bin/oozie-run.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-setup.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-setup.sh b/distro/src/main/bin/oozie-setup.sh
index 0b3974e..f21b996 100644
--- a/distro/src/main/bin/oozie-setup.sh
+++ b/distro/src/main/bin/oozie-setup.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-start.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-start.sh b/distro/src/main/bin/oozie-start.sh
index c1a38d4..dd9e994 100644
--- a/distro/src/main/bin/oozie-start.sh
+++ b/distro/src/main/bin/oozie-start.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-stop.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-stop.sh b/distro/src/main/bin/oozie-stop.sh
index 92d77f5..f0a92fb 100644
--- a/distro/src/main/bin/oozie-stop.sh
+++ b/distro/src/main/bin/oozie-stop.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozie-sys.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozie-sys.sh b/distro/src/main/bin/oozie-sys.sh
index 55f101c..f535904 100755
--- a/distro/src/main/bin/oozie-sys.sh
+++ b/distro/src/main/bin/oozie-sys.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/distro/src/main/bin/oozied.sh
----------------------------------------------------------------------
diff --git a/distro/src/main/bin/oozied.sh b/distro/src/main/bin/oozied.sh
index 0b1b987..7162fd0 100644
--- a/distro/src/main/bin/oozied.sh
+++ b/distro/src/main/bin/oozied.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index cbe849a..927eb62 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 5.1.0 release (trunk - unreleased)
 
+OOZIE-2352 Unportable shebang in shell scripts (dbist13 via andras.piros)
 OOZIE-2211 Remove OozieCLI#validateCommandV41 (dbist13 via andras.piros)
 OOZIE-3178 ./bin/mkdistro.sh -Papache-release fails due to javadoc errors (dbist13 via gezapeti)
 OOZIE-2967 TestStatusTransitService.testBundleStatusCoordSubmitFails fails intermittently in Apache Oozie Core 5.0.0-SNAPSHOT (pbacsko)

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/source-headers.txt
----------------------------------------------------------------------
diff --git a/source-headers.txt b/source-headers.txt
index 5a5c3f3..0999ca4 100644
--- a/source-headers.txt
+++ b/source-headers.txt
@@ -24,7 +24,7 @@ File types: XML XSD HTML
 ----------------------------------
 File types: SCRIPT PROPERTIES TEXT
 
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/tools/src/main/bin/oozie-diag-bundle-collector.sh
----------------------------------------------------------------------
diff --git a/tools/src/main/bin/oozie-diag-bundle-collector.sh b/tools/src/main/bin/oozie-diag-bundle-collector.sh
index 68929e1..55e9d18 100755
--- a/tools/src/main/bin/oozie-diag-bundle-collector.sh
+++ b/tools/src/main/bin/oozie-diag-bundle-collector.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file

http://git-wip-us.apache.org/repos/asf/oozie/blob/eba35f01/tools/src/main/bin/ooziedb.sh
----------------------------------------------------------------------
diff --git a/tools/src/main/bin/ooziedb.sh b/tools/src/main/bin/ooziedb.sh
index b57cff1..b9e38af 100644
--- a/tools/src/main/bin/ooziedb.sh
+++ b/tools/src/main/bin/ooziedb.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file