Skip to content

Commit

Permalink
Merge pull request #48 from thin-edge/fix-shellcheck-warnings
Browse files Browse the repository at this point in the history
fix(identity): resolve shellcheck warnings
  • Loading branch information
reubenmiller authored Dec 21, 2023
2 parents a14f77a + 76bd329 commit 49cd611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/tedge-bootstrap/files/tedge-identity
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ get_mac_address() {
}

get_model_type() {
MODEL=$(cat /proc/cpuinfo | grep Model | cut -d: -f2 | xargs)
SERIAL_NO=$(cat /proc/cpuinfo | grep Serial | cut -d: -f2 | xargs)
MODEL=$(grep Model /proc/cpuinfo | cut -d: -f2 | xargs)
SERIAL_NO=$(grep Serial /proc/cpuinfo | cut -d: -f2 | xargs)

echo "Detected model: $MODEL" >&2
echo "Detected serial no.: $SERIAL_NO" >&2
Expand Down

0 comments on commit 49cd611

Please sign in to comment.