This commit is contained in:
Bob Mottram 2016-07-05 16:52:04 +01:00
parent bcd762e8dd
commit ba1d0cc7a7
1 changed files with 9 additions and 9 deletions

View File

@ -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"