diff options
author | P. 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) |
commit | b0362c0b23057f3fcfd9c41d5e6c7082758a3c1e (patch) | |
tree | d7d0d1b768c19fcac7b64c0a4fa533db8cf14cf9 | |
parent | f418efcd6d156d64f5e339a0b76613317bfd2368 (diff) |
Fix oh_cache() read/write behavior.
-rw-r--r-- | lib/cache.sh | 2 |
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}" |