added if checks for system paths
This commit is contained in:
@@ -19,7 +19,14 @@ then
|
|||||||
|
|
||||||
for subscription in "${subscriptionList[@]}"
|
for subscription in "${subscriptionList[@]}"
|
||||||
do
|
do
|
||||||
|
|
||||||
|
if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]]
|
||||||
|
then
|
||||||
cd "$subscription/httpdocs/shopsystem/application/cache/boxes"
|
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"
|
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
|
||||||
ls -1 > "/tmp/dirList.txt"
|
ls -1 > "/tmp/dirList.txt"
|
||||||
readarray -t dirList < /tmp/dirList.txt
|
readarray -t dirList < /tmp/dirList.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user