Check for DESTDIR variable in install script

In case someone (distribution packager) wants to set the path himself
lets check for the DESTDIR variable. If none is set do the same as
before and install depending on UID.
This commit is contained in:
Michael Vetter 2018-03-28 13:50:17 +02:00
parent 6327db9499
commit 54730fb72e

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"