diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-14 23:20:27 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-02-14 23:20:27 +0100 |
commit | 6b2a02c6099da06aeddc4a0595121943fada07c6 (patch) | |
tree | 6bce0df55639e3ad2c9468f036f7c30086852a63 /src/core | |
parent | 20cadeb452b15563a9e6eafe6d3bb6b760388cba (diff) |
tried to make aif FHS/hier compliant + updated howto/readme
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-misc.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh index bd59ce0..01c291f 100644 --- a/src/core/libs/lib-misc.sh +++ b/src/core/libs/lib-misc.sh @@ -62,8 +62,9 @@ check_is_in () } -# cleans up file in the runtime directory who can be deleted +# cleans up file in the runtime directory who can be deleted, make dir first if needed cleanup_runtime () { + mkdir -p $RUNTIME_DIR || die_error "Cannot create $RUNTIME_DIR" rm -rf $RUNTIME_DIR/.dia* &>/dev/null } |