From ba1d0cc7a747ee370d3c7423275736f68bed7c25 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 5 Jul 2016 16:52:04 +0100 Subject: [PATCH] Braces --- src/freedombone-selector | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/freedombone-selector b/src/freedombone-selector index ef560dfc..e51bc864 100755 --- a/src/freedombone-selector +++ b/src/freedombone-selector @@ -98,7 +98,7 @@ function show_apps { app_index=0 for a in "${APPS_AVAILABLE[@]}" do - if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then + if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then applist="$applist $n $a off" else applist="$applist $n $a on" @@ -130,8 +130,8 @@ function remove_apps { n=0 for a in "${APPS_INSTALLED[@]}" do - if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then - if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then + if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then + if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then if [ ${n} -gt 0 ]; then removals="$removals $APPS_AVAILABLE[$app_index]" else @@ -163,8 +163,8 @@ function remove_apps { read_configuration for a in "${APPS_AVAILABLE[@]}" do - if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then - if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then + if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then + if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then echo $"Removing application: ${a}" remove_${a} echo $"${a} was removed" @@ -181,8 +181,8 @@ function install_apps { n=0 for a in "${APPS_INSTALLED[@]}" do - if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then - if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then + if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then + if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then if [ ${n} -gt 0 ]; then installs="$installs $APPS_AVAILABLE[$app_index]" else @@ -214,8 +214,8 @@ function install_apps { read_configuration for a in "${APPS_AVAILABLE[@]}" do - if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then - if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then + if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then + if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then echo $"Installing application: ${a}" install_${a} echo $"${a} was installed"