hashcache will now exit with non-zero status if requested item cannot be found
parent
01bdca9422
commit
6f9001740c
|
@ -72,5 +72,9 @@ if [ "$hash" == 'clear' ]; then
|
||||||
elif [ "$set" ]; then
|
elif [ "$set" ]; then
|
||||||
_cache "$hash" "$set"
|
_cache "$hash" "$set"
|
||||||
else
|
else
|
||||||
_retrieve "$hash"
|
result="$( _retrieve "$hash" "$set" )"
|
||||||
|
echo "$result"
|
||||||
|
|
||||||
|
# exit with negative status if we have no result
|
||||||
|
[ -n "$result" ]
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue