minor fixes to satisfy shellcheck

This commit is contained in:
Maarten van Gompel 2021-03-31 20:14:53 +02:00
parent ae3e1edd9c
commit da3dba4bfb
2 changed files with 5 additions and 3 deletions

View file

@ -229,7 +229,8 @@ mainloop() {
while read -r line; do
if echo "$line" | grep -E "^signal.*StateChanged"; then
rm /tmp/modem.*.state 2>/dev/null
read -r oldstate
# shellcheck disable=SC2034
read -r oldstate #unused but we need to read past it
read -r newstate
if echo "$newstate" | grep "int32 2"; then
touch /tmp/modem.locked.state