summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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}"