From 6219cb31261fde2e7f3903c3d9aa6a18cfd403a0 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 14 Jan 2017 18:35:34 +0100 Subject: [PATCH] Stuff --- scripts/installPreferences.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/installPreferences.sh b/scripts/installPreferences.sh index fd6175a..dc189c5 100755 --- a/scripts/installPreferences.sh +++ b/scripts/installPreferences.sh @@ -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