Skip to content

Commit

Permalink
components/9990-networking.sh: Add shellcheck override
Browse files Browse the repository at this point in the history
To make `components/9990-networking.sh` shellcheck clean, add an
override for specifying `HWADDR`, which is used by `do_iscsi` from
`9990-mount-iscsi.sh`. Run shellcheck:

```
shellcheck -e SC1090 components/9990-networking.sh
```

Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
  • Loading branch information
bdrung committed Aug 21, 2019
1 parent abfb059 commit bac527f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/9990-networking.sh
Expand Up @@ -128,6 +128,8 @@ do_netsetup ()

if [ -n "${interface}" ]
then
# HWADDR used by do_iscsi from 9990-mount-iscsi.sh
# shellcheck disable=SC2034
HWADDR="$(cat "/sys/class/net/${interface}/address")"
fi

Expand Down

0 comments on commit bac527f

Please sign in to comment.