Skip to content

Commit

Permalink
fix shellcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Oct 22, 2023
1 parent 15b1888 commit 5e338f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ if ! [ -f /tmp/IPv4.json ] && ! [ -f /tmp/IPv6.json ]; then
exit 1
fi

if [ -f /tmp/IPv4.json ] && [ "$(cat /tmp/IPv4.json | jq -r .status)" != "success" ]; then
if [ -f /tmp/IPv4.json ] && [ "$(jq -r .status </tmp/IPv4.json)" != "success" ]; then
exit 1
fi

if [ -f /tmp/IPv6.json ] && [ "$(cat /tmp/IPv6.json | jq -r .status)" != "success" ]; then
if [ -f /tmp/IPv6.json ] && [ "$(jq -r .status </tmp/IPv6.json)" != "success" ]; then
exit 1
fi

Expand Down

0 comments on commit 5e338f7

Please sign in to comment.