Index: branches/5.2.x/tools/clear_cache.sh =================================================================== diff -u -N -r14585 -r15709 --- branches/5.2.x/tools/clear_cache.sh (.../clear_cache.sh) (revision 14585) +++ branches/5.2.x/tools/clear_cache.sh (.../clear_cache.sh) (revision 15709) @@ -1,2 +1,5 @@ -cd ../system/cache/; find ./ -maxdepth 1 -not -name "CVS" -not -name ".svn" -not -name ".htaccess" -type d -o -name "debug_*" | xargs rm -Rf -cd ../.restricted/; rm debug_*.txt -Rf +#!/bin/sh +FULL_PATH=`cd $(dirname $0)/..; pwd` + +find "$FULL_PATH"/system/cache -mindepth 1 -maxdepth 1 -not -name "CVS" -not -name ".svn" -print0 | xargs -0 rm -Rf +rm -Rf "$FULL_PATH"/system/.restricted/debug_*.txt