1
0
Fork 0

hashcache will now exit with non-zero status if requested item cannot be found

master
Mike Gerwitz 2013-03-10 16:14:14 -04:00
parent 01bdca9422
commit 6f9001740c
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 5 additions and 1 deletions

View File

@ -72,5 +72,9 @@ if [ "$hash" == 'clear' ]; then
elif [ "$set" ]; then
_cache "$hash" "$set"
else
_retrieve "$hash"
result="$( _retrieve "$hash" "$set" )"
echo "$result"
# exit with negative status if we have no result
[ -n "$result" ]
fi