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