diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2021-11-24 10:03:49 +0100 |
---|---|---|
committer | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2021-11-24 10:03:49 +0100 |
commit | f201dc09d053a4da3ce110b0d90e00d4ed3a062c (patch) | |
tree | dd6a63f7b277df2910e9ed5c83fa23d3768659d9 /mule | |
parent | c57f1996003437519320dbbd8d7a9936e19e27ab (diff) |
mule: mule.sh: use file redirect instead of cat
Hinted by Shellcheck:
SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Diffstat (limited to 'mule')
-rwxr-xr-x | mule/mule.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mule/mule.sh b/mule/mule.sh index 5aaccd5..0245f5a 100755 --- a/mule/mule.sh +++ b/mule/mule.sh @@ -52,7 +52,7 @@ enable_dfu() { [ -f /proc/device-tree/model ] || die "can't determine hardware version" -MODEL=$(cat /proc/device-tree/model | tr -d '\000') +MODEL=$(tr -d '\000' < /proc/device-tree/model) case "$MODEL" in "Theobroma Systems A31 Pangolin") |