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() { _is_system_dir() {
# if $THEME_DIR begins with $HOME # if $THEME_DIR begins with /usr
if [ -z "${THEME_DIR##"$HOME"/*}" ]; then if [ "${THEME_DIR:0:4}" == "/usr" ]; then
return 1 return 0
fi fi
return 0 return 1
} }
_is_valid_color() { _is_valid_color() {