Restore old method to check system directory #5

This commit is contained in:
Sergei Eremenko 2018-09-28 21:28:45 +03:00
parent 4d31a26b9a
commit 81708adccb

View file

@ -86,12 +86,12 @@ _is_root_user() {
}
_is_system_dir() {
# if $THEME_DIR begins with $HOME
if [ -z "${THEME_DIR##"$HOME"/*}" ]; then
return 1
# if $THEME_DIR begins with /usr
if [ "${THEME_DIR:0:4}" == "/usr" ]; then
return 0
fi
return 0
return 1
}
_is_valid_color() {