mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-20 06:54:38 +00:00
scripts: Fix multiple shellcheck warnings
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6,11 +6,11 @@ echo "Interrupts per second:"
|
||||
while true
|
||||
do
|
||||
sum=0
|
||||
while read line
|
||||
while read -r line
|
||||
do
|
||||
for word in $line
|
||||
do
|
||||
if [ "${word#[0-9]}" != "$word" -a "${word%[0-9]}" != "$word" ]; then
|
||||
if [ "${word#[0-9]}" != "$word" ] && [ "${word%[0-9]}" != "$word" ]; then
|
||||
sum="$((sum + word))"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user