Skip to content

Commit

Permalink
Fix use without gui
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Mar 10, 2018
1 parent ecaab76 commit e5bf28f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions numix-folders
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,18 @@ if [ "$runmode" -eq 2 ]; then

else
if [ -d /home/"$cuser"/.local/share/icons/Numix/ ]; then
dir=/home/"$cuser"/.local/share/icons
sdir=/home/"$cuser"/.local/share/icons
ddir=$sdir
elif [ -d /home/"$cuser"/.icons/Numix ]; then
dir=/home/"$cuser"/.icons
sdir=/home/"$cuser"/.icons
ddir=$sdir
elif [ -d /usr/share/icons/Numix/ ]; then
if [[ $UID -ne 0 ]]; then
echo -e \
"You appear to have Numix installed globally.\n" \
"\rPlease run this script again as root."
gerror
sdir=/usr/share/icons
ddir=/home/"$cuser"/.icons
else
dir=/usr/share/icons
sdir=/usr/share/icons
ddir=$sdir
fi
else
echo -e \
Expand Down

0 comments on commit e5bf28f

Please sign in to comment.