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
## 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

Loading…
Cancel
Save