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() {
|
||||
# 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() {
|
||||
|
|
Loading…
Reference in a new issue