Skip to content

Commit

Permalink
fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Apr 9, 2024
1 parent 5594009 commit 49a5173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/share/planefence/planefence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fi

# first get DISTANCE unit:
DISTUNIT="mi"
DISTCONV=1
#DISTCONV=1
if [[ -f "$SOCKETCONFIG" ]]; then
case "$(grep "^distanceunit=" "$SOCKETCONFIG" |sed "s/distanceunit=//g")" in
nauticalmile)
Expand Down Expand Up @@ -442,7 +442,7 @@ EOF
if [[ "${NEWVALUES[1]::1}" == "@" ]]; then
# Print "yes" and add a link if available
if [[ "${NEWVALUES[-1]::13}" == "https://t.co/" ]]; then
printf " <td><a href=\"%s\" target=\"_blank\">tweet</a></td>\n" "$(tr -dc '[[:print:]]' <<< "${NEWVALUES[-1]}")" >&3
printf " <td><a href=\"%s\" target=\"_blank\">tweet</a></td>\n" "$(tr -dc '[:print:]' <<< "${NEWVALUES[-1]}")" >&3
else
printf " <td>discord</td>\n" >&3
fi
Expand Down

0 comments on commit 49a5173

Please sign in to comment.