summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-02 22:27:37 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-02 22:27:37 (EDT)
commitb0362c0b23057f3fcfd9c41d5e6c7082758a3c1e (patch)
treed7d0d1b768c19fcac7b64c0a4fa533db8cf14cf9 /lib
parentf418efcd6d156d64f5e339a0b76613317bfd2368 (diff)
Fix oh_cache() read/write behavior.
Diffstat (limited to 'lib')
-rw-r--r--lib/cache.sh2
1 files changed, 1 insertions, 1 deletions
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}"