Skip to content
Snippets Groups Projects
Commit 88d6c939 authored by Robin Richtsfeld's avatar Robin Richtsfeld Committed by Kenneth Reitz
Browse files

Fix some Bash issues (#491)

parent b261158b
No related branches found
No related tags found
No related merge requests found
...@@ -25,9 +25,9 @@ SHUNIT_ERROR=2 ...@@ -25,9 +25,9 @@ SHUNIT_ERROR=2
# enable strict mode by default # enable strict mode by default
SHUNIT_STRICT=${SHUNIT_STRICT:-${SHUNIT_TRUE}} SHUNIT_STRICT=${SHUNIT_STRICT:-${SHUNIT_TRUE}}
_shunit_warn() { echo "shunit2:WARN $@" >&2; } _shunit_warn() { echo "shunit2:WARN $*" >&2; }
_shunit_error() { echo "shunit2:ERROR $@" >&2; } _shunit_error() { echo "shunit2:ERROR $*" >&2; }
_shunit_fatal() { echo "shunit2:FATAL $@" >&2; exit ${SHUNIT_ERROR}; } _shunit_fatal() { echo "shunit2:FATAL $*" >&2; exit ${SHUNIT_ERROR}; }
# specific shell checks # specific shell checks
if [ -n "${ZSH_VERSION:-}" ]; then if [ -n "${ZSH_VERSION:-}" ]; then
......
...@@ -36,7 +36,7 @@ capture() ...@@ -36,7 +36,7 @@ capture()
LAST_COMMAND="$@" LAST_COMMAND="$@"
$@ >${STD_OUT} 2>${STD_ERR} "$@" >${STD_OUT} 2>${STD_ERR}
RETURN=$? RETURN=$?
rtrn=${RETURN} # deprecated rtrn=${RETURN} # deprecated
} }
......
...@@ -25,9 +25,9 @@ SHUNIT_ERROR=2 ...@@ -25,9 +25,9 @@ SHUNIT_ERROR=2
# enable strict mode by default # enable strict mode by default
SHUNIT_STRICT=${SHUNIT_STRICT:-${SHUNIT_TRUE}} SHUNIT_STRICT=${SHUNIT_STRICT:-${SHUNIT_TRUE}}
_shunit_warn() { echo "shunit2:WARN $@" >&2; } _shunit_warn() { echo "shunit2:WARN $*" >&2; }
_shunit_error() { echo "shunit2:ERROR $@" >&2; } _shunit_error() { echo "shunit2:ERROR $*" >&2; }
_shunit_fatal() { echo "shunit2:FATAL $@" >&2; exit ${SHUNIT_ERROR}; } _shunit_fatal() { echo "shunit2:FATAL $*" >&2; exit ${SHUNIT_ERROR}; }
# specific shell checks # specific shell checks
if [ -n "${ZSH_VERSION:-}" ]; then if [ -n "${ZSH_VERSION:-}" ]; then
......
...@@ -36,7 +36,7 @@ capture() ...@@ -36,7 +36,7 @@ capture()
LAST_COMMAND="$@" LAST_COMMAND="$@"
$@ >${STD_OUT} 2>${STD_ERR} "$@" >${STD_OUT} 2>${STD_ERR}
RETURN=$? RETURN=$?
rtrn=${RETURN} # deprecated rtrn=${RETURN} # deprecated
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment