From 992bde2f97d61d6fbd81f603fca18d7ce3f46147 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 9 May 2018 16:08:41 +0100 Subject: [PATCH] Index scope --- src/freedombone-addremove | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-addremove b/src/freedombone-addremove index df4b621d..fe170b18 100755 --- a/src/freedombone-addremove +++ b/src/freedombone-addremove @@ -133,8 +133,8 @@ function show_apps { fi fi n=$((n+1)) + app_index=$((app_index+1)) fi - app_index=$((app_index+1)) done # shellcheck disable=SC2086 @@ -174,8 +174,8 @@ function remove_apps_selected { n=$((n+1)) fi fi + app_index=$((app_index+1)) fi - app_index=$((app_index+1)) done # if no apps to be removed then don't do anything @@ -221,8 +221,8 @@ function install_apps_selected { n=$((n+1)) fi fi + app_index=$((app_index+1)) fi - app_index=$((app_index+1)) done # if no apps to be installed then don't do anything