mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +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
|
killcommand=0
|
||||||
for i in "${present[@]}"; do
|
for i in "${present[@]}"; do
|
||||||
present=$(expr length "$(which $i)")
|
present=`which $i | awk '{ print length }'`
|
||||||
if [[ $present -gt 0 ]]; then
|
if [[ $present -gt 0 ]]; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user