mirror of
https://github.com/PapirusDevelopmentTeam/papirus-folders.git
synced 2024-09-19 19:18:49 -04:00
Restore old method to check system directory #5
This commit is contained in:
parent
4d31a26b9a
commit
81708adccb
1 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue