replace 'expr length' with awk for cross platform compatibility

Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
This commit is contained in:
Isaac Konikoff
2021-03-30 10:17:25 -07:00
parent 9c3fcd3b4d
commit 444767f3f7

View File

@@ -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