From e9a862f3f32e64d16f9f61d1034833f881e8714b Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Fri, 4 May 2018 12:55:36 -0500 Subject: [PATCH] Fixed prefix constant scope bug. --- fluxion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluxion.sh b/fluxion.sh index 7f24b5b..cc6aa1b 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -939,7 +939,7 @@ fluxion_allocate_interface() { # Reserve interfaces # ------------------------------------------------------------ # fluxion_next_assignable_interface() { # Find next available interface by checking global. - readonly prefix=$1 + local -r prefix=$1 local index=0 while [ "${FluxionInterfaces[$prefix$index]}" ]; do let index++