mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +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
	 Isaac Konikoff
					Isaac Konikoff