Fixed prefix constant scope bug.

This commit is contained in:
Matias Barcenas 2018-05-04 12:55:36 -05:00
parent 676f5a9b7b
commit e9a862f3f3
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ fluxion_allocate_interface() { # Reserve interfaces
# ------------------------------------------------------------ # # ------------------------------------------------------------ #
fluxion_next_assignable_interface() { fluxion_next_assignable_interface() {
# Find next available interface by checking global. # Find next available interface by checking global.
readonly prefix=$1 local -r prefix=$1
local index=0 local index=0
while [ "${FluxionInterfaces[$prefix$index]}" ]; do while [ "${FluxionInterfaces[$prefix$index]}" ]; do
let index++ let index++