From: <dg...@su...> - 2009-01-31 22:59:50
|
Author: henrik Date: Sat Jan 31 23:58:15 2009 New Revision: 5249 URL: http://www.opensync.org/changeset/5249 Log: Do not try to clean paths, if there are no paths to clean. Modified: plugins/mozilla-sync/trunk/tests/blackbox_test_common.shinc.in Modified: plugins/mozilla-sync/trunk/tests/blackbox_test_common.shinc.in ============================================================================== --- plugins/mozilla-sync/trunk/tests/blackbox_test_common.shinc.in Sat Jan 31 23:13:36 2009 (r5248) +++ plugins/mozilla-sync/trunk/tests/blackbox_test_common.shinc.in Sat Jan 31 23:58:15 2009 (r5249) @@ -62,9 +62,11 @@ # (unless $KEEP_TEMP_FILES is set) if [ -z "${KEEP_TEMP_FILES}" ]; then # echo "Cleaning" - for DIR in "${PATHS_TO_CLEAN[@]}"; do - rm -rf "${DIR}" || true - done + if [ "${#PATHS_TO_CLEAN[*]}" != "0" ]; then + for DIR in "${PATHS_TO_CLEAN[@]}"; do + rm -rf "${DIR}" || true + done + fi else for DIR in "${PATHS_TO_CLEAN[@]}"; do echo "Not deleting [${DIR}]" |