added if checks for system paths

This commit is contained in:
Daniel Sosnowski
2025-12-02 14:09:11 +01:00
parent 01205ce0b9
commit 1f47357435

View File

@@ -19,7 +19,14 @@ then
for subscription in "${subscriptionList[@]}"
do
if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]]
then
cd "$subscription/httpdocs/shopsystem/application/cache/boxes"
elif [[ -d "$subscription/httpdocs/shopsystem/application/cache/smarty_compiled" ]]
then
cd "$subscription/httpdocs/shopsystem/application/cache/smarty_compiled"
fi
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
ls -1 > "/tmp/dirList.txt"
readarray -t dirList < /tmp/dirList.txt