yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sek...@apache.org
Subject [07/20] yetus git commit: YETUS-382. launch-test-patch.sh has shellcheck issues
Date Wed, 11 May 2016 21:41:29 GMT
YETUS-382. launch-test-patch.sh has shellcheck issues

Signed-off-by: Sean Busbey <busbey@apache.org>


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

Branch: refs/heads/YETUS-379
Commit: 0cefe812d1643f9c7a2ce66152670f05e4934745
Parents: dc63c86
Author: Allen Wittenauer <aw@apache.org>
Authored: Sun Apr 17 11:19:03 2016 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Sun Apr 17 13:07:25 2016 -0700

----------------------------------------------------------------------
 precommit/test-patch-docker/launch-test-patch.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/0cefe812/precommit/test-patch-docker/launch-test-patch.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch-docker/launch-test-patch.sh b/precommit/test-patch-docker/launch-test-patch.sh
index aac0d21..7daa612 100755
--- a/precommit/test-patch-docker/launch-test-patch.sh
+++ b/precommit/test-patch-docker/launch-test-patch.sh
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-cd "${BASEDIR}"
+cd "${BASEDIR}" || exit 1
 
 if [[ -n ${JAVA_HOME}
   && ! -d ${JAVA_HOME} ]]; then
@@ -36,7 +36,7 @@ TESTPATCHMODE=${TESTPATCHMODE/--docker }
 TESTPATCHMODE=${TESTPATCHMODE%--docker}
 
 
-cd "${BASEDIR}"
+cd "${BASEDIR}" || exit 1
 PATCH_DIR=$(cd -P -- "${PATCH_DIR}" >/dev/null && pwd -P)
 
 # if patch system is generic, then it's either a local
@@ -48,7 +48,7 @@ if [[ "${PATCH_SYSTEM}" = generic ]]; then
   patchfile="/testptch/extras/patch"
 fi
 
-cd "${PATCH_DIR}/precommit/"
+cd "${PATCH_DIR}/precommit/" || exit 1
 #shellcheck disable=SC2086
 "${PATCH_DIR}/precommit/test-patch.sh" \
    --reexec \


Mime
View raw message