From d48899f37aae043a2866ce67a5b79c28ce6565b3 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 13 Jul 2021 13:36:23 +0400 Subject: [PATCH] fix: order variable --- src/main | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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