Skip to content

Commit

Permalink
fixed shellcheck linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 3, 2023
1 parent 12283e4 commit f0e72be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildroot-external/overlay/base/etc/init.d/S01InitHost
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ identify_host() {
fi
HWMODEL="${VENDOR} ${PNAME}"
else
MODEL=$(cat /proc/cpuinfo | grep ^Model | cut -d" " -f2-)
MODEL=$(grep ^Model /proc/cpuinfo | cut -d" " -f2-)
if [[ "${MODEL}" != "" ]]; then
HWMODEL=${MODEL}
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ identify_host() {
fi
HWMODEL="${VENDOR} ${PNAME}"
else
MODEL=$(cat /proc/cpuinfo | grep ^Model | cut -d" " -f2-)
MODEL=$(grep ^Model /proc/cpuinfo | cut -d" " -f2-)
if [[ "${MODEL}" != "" ]]; then
HWMODEL=${MODEL}
fi
Expand Down

0 comments on commit f0e72be

Please sign in to comment.