From 6281b5d47da57004b1d00f1a9946f5af6cca38a0 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 13 Jul 2017 19:11:47 -0500 Subject: rc.inet1: Use bash builtin arithmetic instead of external expr --- rc.inet1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.inet1 b/rc.inet1 index 9ab5102..871b38d 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -76,7 +76,7 @@ lo_down() { # Function to determine if virtual interfaces are defined virtif_determine() { if [ ! -z ${VIRTIFNAME} ]; then - virtifcount=$(expr $(echo ${VIRTIFNAME[@]} | wc -w) - 1) + virtifcount=$(($(echo ${VIRTIFNAME[@]} | wc -w) - 1)) else return 1 fi -- cgit v1.2.3