Merge pull request #8 from jubalh/master

Check for DESTDIR variable in install script
This commit is contained in:
Vince 2018-03-28 19:55:22 +08:00 committed by GitHub
commit 29d095f9a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,9 @@ ROOT_UID=0
DEST_DIR=
# Destination directory
if [ "$UID" -eq "$ROOT_UID" ]; then
if [ -n ${DESTDIR} ]; then
DEST_DIR="${DESTDIR}"
elif [ "$UID" -eq "$ROOT_UID" ]; then
DEST_DIR="/usr/share/themes"
else
DEST_DIR="$HOME/.themes"