Skip to content

Commit 444767f

Browse files
committed
replace 'expr length' with awk for cross platform compatibility
Signed-off-by: Isaac Konikoff <[email protected]>
1 parent 9c3fcd3 commit 444767f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wifi_diag/do_wifi_diag.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ present=(
2121
)
2222
killcommand=0
2323
for i in "${present[@]}"; do
24-
present=$(expr length "$(which $i)")
24+
present=`which $i | awk '{ print length }'`
2525
if [[ $present -gt 0 ]]; then
2626
:
2727
else

0 commit comments

Comments
 (0)