aboutsummaryrefslogtreecommitdiff
path: root/init.d/savecache.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/savecache.in')
-rw-r--r--init.d/savecache.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/init.d/savecache.in b/init.d/savecache.in
index a10de3c2..eda0aa01 100644
--- a/init.d/savecache.in
+++ b/init.d/savecache.in
@@ -6,7 +6,7 @@ description="Saves the caches OpenRC uses to non volatile storage"
start()
{
- if [ -e "${RC_SVCDIR}"/clock-skewed ]; then
+ if [ -e "$RC_SVCDIR"/clock-skewed ]; then
ewarn "WARNING: clock skew detected!"
if ! yesno "savecache_skewed"; then
eerror "Not saving deptree cache"
@@ -14,19 +14,19 @@ start()
fi
fi
ebegin "Saving dependency cache"
- if [ ! -d "${RC_LIBDIR}"/cache ]; then
- rm -rf "${RC_LIBDIR}"/cache
- if ! mkdir "${RC_LIBDIR}"/cache; then
+ if [ ! -d "$RC_LIBDIR"/cache ]; then
+ rm -rf "$RC_LIBDIR"/cache
+ if ! mkdir "$RC_LIBDIR"/cache; then
eend $?
return $?
fi
fi
local save=
for x in deptree depconfig softlevel nettree rc.log; do
- [ -e "${RC_SVCDIR}/${x}" ] && save="${save} ${RC_SVCDIR}/${x}"
+ [ -e "$RC_SVCDIR/$x" ] && save="$save $RC_SVCDIR/$x"
done
- if [ -n "${save}" ]; then
- cp -p ${save} "${RC_LIBDIR}"/cache 2>/dev/null
+ if [ -n "$save" ]; then
+ cp -p $save "$RC_LIBDIR"/cache 2>/dev/null
fi
eend $?
}