Skip to content

Commit

Permalink
Fix logic error in if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Nov 25, 2016
1 parent f7f1825 commit c86bfd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions lib/http_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fi

conditional_get () {

if ! $COMMAND_PATHS; then
if [ "$COMMAND_PATHS" != true ]; then
echo "ERROR: $FUNCNAME: global command paths not found" >&2
return 2
fi
Expand Down Expand Up @@ -418,8 +418,8 @@ conditional_get () {

get_response_code () {

if ! $COMMAND_PATHS; then
echo "ERROR: global command paths not found" >&2
if [ "$COMMAND_PATHS" != true ]; then
echo "ERROR: $FUNCNAME: global command paths not found" >&2
return 2
fi

Expand Down Expand Up @@ -460,8 +460,8 @@ get_response_code () {

get_header_value () {

if ! $COMMAND_PATHS; then
echo "ERROR: global command paths not found" >&2
if [ "$COMMAND_PATHS" != true ]; then
echo "ERROR: $FUNCNAME: global command paths not found" >&2
return 2
fi

Expand Down
8 changes: 4 additions & 4 deletions lib/md_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ fi
#######################################################################
getEntityFromFile () {

if ! $COMMAND_PATHS; then
echo "ERROR: global command paths not found" >&2
if [ "$COMMAND_PATHS" != true ]; then
echo "ERROR: $FUNCNAME: global command paths not found" >&2
return 2
fi

Expand Down Expand Up @@ -115,8 +115,8 @@ getEntityFromFile () {
#######################################################################
getEntityFromServer () {

if ! $COMMAND_PATHS; then
echo "ERROR: global command paths not found" >&2
if [ "$COMMAND_PATHS" != true ]; then
echo "ERROR: $FUNCNAME: global command paths not found" >&2
return 2
fi

Expand Down

0 comments on commit c86bfd0

Please sign in to comment.