Skip to content

Commit

Permalink
Merge pull request #5 from docsion/fjohxyxi_built_in
Browse files Browse the repository at this point in the history
fix rf_http on return code
  • Loading branch information
beastoin authored Oct 10, 2023
2 parents 3748446 + c7ffad1 commit 38d91c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/built_in.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/bin/bash
#
# RFSH built-in functions.
Expand Down Expand Up @@ -100,7 +101,7 @@ rf_http() {
| jq '{"response_code": .response_code} + {"response": .filename_effective}'

return_codes=( "${PIPESTATUS[@]}" )
if (( return_codes[0] == 1 )); then
if (( return_codes[0] != 0 )); then
exit ${return_codes[0]}
fi
}
Expand Down

0 comments on commit 38d91c8

Please sign in to comment.