mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-28 17:32:35 +00:00
replace 'expr length' with awk for cross platform compatibility
Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
This commit is contained in:
@@ -21,7 +21,7 @@ present=(
|
||||
)
|
||||
killcommand=0
|
||||
for i in "${present[@]}"; do
|
||||
present=$(expr length "$(which $i)")
|
||||
present=`which $i | awk '{ print length }'`
|
||||
if [[ $present -gt 0 ]]; then
|
||||
:
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user