diff options
author | Roy Marples <roy@marples.name> | 2009-04-27 07:51:18 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-27 07:51:18 +0000 |
commit | e70a1429564a8fce5036c351b010a47dbb6c28b7 (patch) | |
tree | a1fc0f75a53041771bc9054fdab517ac32b3d79a /init.d/savecache.in | |
parent | eaa32c75c9bba7af0ec842d82f56a6862bbc83db (diff) |
Style.
Diffstat (limited to 'init.d/savecache.in')
-rw-r--r-- | init.d/savecache.in | 14 |
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 $? } |