create dirs for lock file

This commit is contained in:
Ville Rantanen
2016-11-28 09:27:36 +02:00
parent 77ad758c1b
commit 490b98f063

View File

@@ -25,6 +25,8 @@ BOXES=cat
which boxes &>/dev/null && BOXES="boxes -d shell" which boxes &>/dev/null && BOXES="boxes -d shell"
_create() { _create() {
LOCKDIR=$( dirname "$LOCKFILE" )
mkdir -p "$LOCKDIR"
touch "$LOCKFILE" touch "$LOCKFILE"
} }
_exist() { _exist() {