Ensure configuration consistency run in the very beginning and do not process empty apps and plugins.

This commit is contained in:
2021-04-03 17:25:00 +05:00
parent 858db76ad6
commit 0266f1af31
3 changed files with 17 additions and 9 deletions
+4
View File
@@ -1,5 +1,9 @@
# Load enabled apps.
for app in ${ENABLED_APPS[@]}; do
if [ "${app}" = "" ]; then
continue
fi
if [ ! -f "${CONFIG_PATH}/zsh/apps/${app}.app.zsh" ]; then
error 0 "Application '${app}' doesn't exist"
else