Browse Source

fix: order variable

bookworm
pvincent 3 years ago
parent
commit
d48899f37a
  1. 15
      src/main

15
src/main

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

Loading…
Cancel
Save