From b0362c0b23057f3fcfd9c41d5e6c7082758a3c1e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 02 Aug 2012 22:27:37 -0400 Subject: Fix oh_cache() read/write behavior. --- (limited to 'lib') diff --git a/lib/cache.sh b/lib/cache.sh index b428fd8..a87646b 100644 --- a/lib/cache.sh +++ b/lib/cache.sh @@ -29,7 +29,7 @@ oh_cache() mkdir -p "${OH_SOURCE_DIR}/tmp/.cache" - if [ ${#} -eq 1 ]; then + if [ ${#} -eq 0 ]; then cat "${OH_SOURCE_DIR}/tmp/.cache/${_property}" 2>/dev/null else echo "${*}" >"${OH_SOURCE_DIR}/tmp/.cache/${_property}" -- cgit v0.9.1