Skip to content

Commit

Permalink
fix: shellcheck error on L#111
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Wendel <[email protected]>
  • Loading branch information
KwadFan committed Nov 6, 2023
1 parent acc95f2 commit df8f36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function get_def_gw {
if [ "$(cat /sys/class/net/wlan0/operstate)" == "up" ]; then
default_gw="$(ip route | awk 'NR==1 {print $3}')"
echo "${default_gw}"
if [ -z "$default_gw" ]; then
if [ -z "${default_gw}" ]; then
log_msg "WARN: Cannot get the default gateway. Restarting service..."
sleep 5
systemctl restart sonar.service
Expand Down

0 comments on commit df8f36d

Please sign in to comment.