fixed check dir and symlink for prefixes

This commit is contained in:
Mikhail Tergoev
2024-05-07 20:35:23 +03:00
parent f42bd5d810
commit eae2aa4f21
2 changed files with 9 additions and 4 deletions

View File

@ -325,7 +325,8 @@ unset PW_ADD_PREFIXES_TO_GUI
PW_PREFIX_NAME="${PW_PREFIX_NAME//[[:blank:]]/_}"
for PAIG in ./* ; do
if [[ "${PAIG//'./'/}" != "${PORTWINE_DB^^//[[:blank:]]/_}" ]] \
&& [[ "${PAIG//'./'/}" != "${PW_PREFIX_NAME}" ]]
&& [[ "${PAIG//'./'/}" != "${PW_PREFIX_NAME}" ]] \
&& [[ -d "${PAIG}" ]]
then
PW_ADD_PREFIXES_TO_GUI="${PW_ADD_PREFIXES_TO_GUI}!${PAIG//'./'/}"
fi