This commit is contained in:
Geoffrey Frogeye 2017-01-14 18:35:34 +01:00
parent 8aff00d3c4
commit 6219cb3126

View file

@ -40,7 +40,7 @@ function install-preferences {
# System detection # System detection
if which pacman &> /dev/null; then if which pacman &> /dev/null; then
ARCH=1 ARCH=1
if [ $ADMIN ]; then if [ $ADMIN == 1 ]; then
sudo pacman -Sy sudo pacman -Sy
function installOne { # package function installOne { # package
pacman -Q $1 &> /dev/null pacman -Q $1 &> /dev/null
@ -83,7 +83,7 @@ function install-preferences {
elif which dpkg &> /dev/null; then elif which dpkg &> /dev/null; then
DEBIAN=1 DEBIAN=1
if [ $ADMIN ]; then if [ $ADMIN == 1 ]; then
apt-get update apt-get update
function installOne { # package function installOne { # package
STATUS=$(mktemp) STATUS=$(mktemp)
@ -179,7 +179,7 @@ function install-preferences {
# Common GUI # Common GUI
if [ $GUI ]; then if [ $GUI == 1 ]; then
# Desktop manager # Desktop manager
inst i3 i3lock dmenu dunst unclutter xautolock feh numlockx scrot inst i3 i3lock dmenu dunst unclutter xautolock feh numlockx scrot
if [ $DEBIAN ]; then if [ $DEBIAN ]; then
@ -208,7 +208,7 @@ function install-preferences {
fi fi
fi fi
if [ $EXTRA ]; then if [ $EXTRA == 1 ]; then
# Extra CLI # Extra CLI
inst sl inst sl
@ -217,7 +217,7 @@ function install-preferences {
fi fi
# Extra GUI # Extra GUI
if [ $GUI ]; then if [ $GUI == 1 ]; then
inst vlc gimp mpd vimpc inst vlc gimp mpd vimpc
if [ $ARCH ]; then if [ $ARCH ]; then