diff --git a/src/main b/src/main index 0fb7c83..2642791 100755 --- a/src/main +++ b/src/main @@ -1,6 +1,7 @@ #!/bin/bash ## FUNCTIONS +## --------- function runVoid(){ local COMMAND="$@" @@ -28,11 +29,8 @@ function askConfirmation (){ esac } -## MAIN - -[ `id -u` -eq 0 ] && echo 'normal user required' && exit -1 - -# variables and constants +# Variables and constants +## --------- BASEDIR=/opt/debian-gnome GIT_REPOSITORY_RAW="https://git.artcode.re/pvincent/debian-gnome/raw/master" @@ -43,6 +41,13 @@ REQUIRED_PACKAGES=( \ tilix bash-completion \ ) + +## MAIN +## --------- + +[ `id -u` -eq 0 ] && echo 'normal user required' && exit -1 + + # required packages for package in ${REQUIRED_PACKAGES[@]}; do runVoid dpkg-query --status $package