Comments and fit to 80-columns.
This commit is contained in:
parent
ae61f4dda6
commit
d1bb7cca77
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244727
@ -107,11 +107,11 @@ f_startup_rcvar_map()
|
||||
)"
|
||||
|
||||
#
|
||||
# Calculate a digest given the checksums of all dependencies (scripts and
|
||||
# the defaults file). This digest will be used to determine if an on-disk
|
||||
# global persistant cache file (containg this digest on the first line)
|
||||
# is valid and can be used to quickly populate the cache value for
|
||||
# immediate return.
|
||||
# Calculate a digest given the checksums of all dependencies (scripts
|
||||
# and the defaults file). This digest will be used to determine if an
|
||||
# on-disk global persistant cache file (containg this digest on the
|
||||
# first line) is valid and can be used to quickly populate the cache
|
||||
# value for immediate return.
|
||||
#
|
||||
local rc_script_list_digest
|
||||
rc_script_list_digest=$( cd "$ETC_RC_D" &&
|
||||
@ -131,11 +131,12 @@ f_startup_rcvar_map()
|
||||
read digest rest_ignored
|
||||
|
||||
#
|
||||
# If the stored digest matches the calculated-one
|
||||
# populate the in-memory cache from the on-disk
|
||||
# cache and provide success exit status.
|
||||
# If the stored digest matches the calculated-
|
||||
# one populate the in-memory cache from the on-
|
||||
# disk cache and provide success exit status.
|
||||
#
|
||||
if [ "$digest" = "$rc_script_list_digest" ]; then
|
||||
if [ "$digest" = "$rc_script_list_digest" ]
|
||||
then
|
||||
cat
|
||||
exit $SUCCESS
|
||||
else
|
||||
@ -151,7 +152,7 @@ f_startup_rcvar_map()
|
||||
echo "$STARTUP_RCVAR_MAP"
|
||||
return $SUCCESS
|
||||
fi
|
||||
# Otherwise, fall-through to create in-memory cache from scratch
|
||||
# Otherwise, fall-thru to create in-memory cache from scratch
|
||||
fi
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user