diff options
-rwxr-xr-x | setup-box | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -116,7 +116,14 @@ search_meta_group() { | sed 's/\"//g' \ | sed 's/,//g') - final_pack="$final_pack "$packages + services=$(cat $i \ + | jq '.$1[][]' \ + | jq '.[] \ + | select(.services)' \ + | sed 's/\"//g') + + final_pack="$final_pack "$packages + final_serv="$final_serv "$services fi done } @@ -196,12 +203,16 @@ main () { # first of all lets redirect any error to the limbo exec 2&> /dev/null + # Harvesting for all valid JSON files + # Getting ready to be used... search_files + # If there is no arguments... let's show how to use this application if [ $# -lt 1 ]; then usage fi + # If there is any argument... let's work while getopts "d:e:g:hl" opt ; do case $opt in d) search_desktop "$OPTARG";; @@ -217,10 +228,11 @@ main () { # installing dependencies # insdep + # Packages to be installed (includes services) optimize_pack "$final_pack" echo $final_pack - echo "" - echo "Agora verificando quais servicos precisam ser adicionados a inicializacao..." + + # Services to be added to startup (just services) optimize_serv "$final_serv" add_services $final_serv |