Bob Mottram il y a 8 ans
Parent
révision
ba1d0cc7a7
1 fichiers modifiés avec 9 ajouts et 9 suppressions
  1. 9
    9
      src/freedombone-selector

+ 9
- 9
src/freedombone-selector Voir le fichier

@@ -98,7 +98,7 @@ function show_apps {
98 98
 	app_index=0
99 99
 	for a in "${APPS_AVAILABLE[@]}"
100 100
 	do
101
-		if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
101
+		if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
102 102
 			applist="$applist $n $a off"
103 103
 		else
104 104
 			applist="$applist $n $a on"
@@ -130,8 +130,8 @@ function remove_apps {
130 130
 	n=0
131 131
 	for a in "${APPS_INSTALLED[@]}"
132 132
 	do
133
-		if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then
134
-			if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then
133
+		if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
134
+			if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
135 135
 				if [ ${n} -gt 0 ]; then
136 136
 					removals="$removals $APPS_AVAILABLE[$app_index]"
137 137
 				else
@@ -163,8 +163,8 @@ function remove_apps {
163 163
 	read_configuration
164 164
 	for a in "${APPS_AVAILABLE[@]}"
165 165
 	do
166
-		if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then
167
-			if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then
166
+		if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
167
+			if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
168 168
 				echo $"Removing application: ${a}"
169 169
 				remove_${a}
170 170
 				echo $"${a} was removed"
@@ -181,8 +181,8 @@ function install_apps {
181 181
 	n=0
182 182
 	for a in "${APPS_INSTALLED[@]}"
183 183
 	do
184
-		if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
185
-			if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then
184
+		if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
185
+			if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
186 186
 				if [ ${n} -gt 0 ]; then
187 187
 					installs="$installs $APPS_AVAILABLE[$app_index]"
188 188
 				else
@@ -214,8 +214,8 @@ function install_apps {
214 214
 	read_configuration
215 215
 	for a in "${APPS_AVAILABLE[@]}"
216 216
 	do
217
-		if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
218
-			if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then
217
+		if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
218
+			if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
219 219
 				echo $"Installing application: ${a}"
220 220
 				install_${a}
221 221
 				echo $"${a} was installed"