Braces
This commit is contained in:
parent
bcd762e8dd
commit
ba1d0cc7a7
|
@ -98,7 +98,7 @@ function show_apps {
|
||||||
app_index=0
|
app_index=0
|
||||||
for a in "${APPS_AVAILABLE[@]}"
|
for a in "${APPS_AVAILABLE[@]}"
|
||||||
do
|
do
|
||||||
if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
|
if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
|
||||||
applist="$applist $n $a off"
|
applist="$applist $n $a off"
|
||||||
else
|
else
|
||||||
applist="$applist $n $a on"
|
applist="$applist $n $a on"
|
||||||
|
@ -130,8 +130,8 @@ function remove_apps {
|
||||||
n=0
|
n=0
|
||||||
for a in "${APPS_INSTALLED[@]}"
|
for a in "${APPS_INSTALLED[@]}"
|
||||||
do
|
do
|
||||||
if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then
|
if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
|
||||||
if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then
|
if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
|
||||||
if [ ${n} -gt 0 ]; then
|
if [ ${n} -gt 0 ]; then
|
||||||
removals="$removals $APPS_AVAILABLE[$app_index]"
|
removals="$removals $APPS_AVAILABLE[$app_index]"
|
||||||
else
|
else
|
||||||
|
@ -163,8 +163,8 @@ function remove_apps {
|
||||||
read_configuration
|
read_configuration
|
||||||
for a in "${APPS_AVAILABLE[@]}"
|
for a in "${APPS_AVAILABLE[@]}"
|
||||||
do
|
do
|
||||||
if [[ $APPS_INSTALLED[$app_index] == "1" ]]; then
|
if [[ ${APPS_INSTALLED[$app_index]} == "1" ]]; then
|
||||||
if [[ $APPS_CHOSEN[$app_index] == "0" ]]; then
|
if [[ ${APPS_CHOSEN[$app_index]} == "0" ]]; then
|
||||||
echo $"Removing application: ${a}"
|
echo $"Removing application: ${a}"
|
||||||
remove_${a}
|
remove_${a}
|
||||||
echo $"${a} was removed"
|
echo $"${a} was removed"
|
||||||
|
@ -181,8 +181,8 @@ function install_apps {
|
||||||
n=0
|
n=0
|
||||||
for a in "${APPS_INSTALLED[@]}"
|
for a in "${APPS_INSTALLED[@]}"
|
||||||
do
|
do
|
||||||
if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
|
if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
|
||||||
if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then
|
if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
|
||||||
if [ ${n} -gt 0 ]; then
|
if [ ${n} -gt 0 ]; then
|
||||||
installs="$installs $APPS_AVAILABLE[$app_index]"
|
installs="$installs $APPS_AVAILABLE[$app_index]"
|
||||||
else
|
else
|
||||||
|
@ -214,8 +214,8 @@ function install_apps {
|
||||||
read_configuration
|
read_configuration
|
||||||
for a in "${APPS_AVAILABLE[@]}"
|
for a in "${APPS_AVAILABLE[@]}"
|
||||||
do
|
do
|
||||||
if [[ $APPS_INSTALLED[$app_index] == "0" ]]; then
|
if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
|
||||||
if [[ $APPS_CHOSEN[$app_index] == "1" ]]; then
|
if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
|
||||||
echo $"Installing application: ${a}"
|
echo $"Installing application: ${a}"
|
||||||
install_${a}
|
install_${a}
|
||||||
echo $"${a} was installed"
|
echo $"${a} was installed"
|
||||||
|
|
Loading…
Reference in New Issue