mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-22 09:09:04 +01:00
Fix typo
This commit is contained in:
@@ -78,7 +78,7 @@ init_system() {
|
|||||||
|
|
||||||
# Lockfile handling (prevents concurrent access)
|
# Lockfile handling (prevents concurrent access)
|
||||||
LOCKDIR="$(dirname "${LOCKFILE}")"
|
LOCKDIR="$(dirname "${LOCKFILE}")"
|
||||||
[[ -w "${LOCKDIR}" ]] || _exiterr "Directory ${LOCKDIR} for LOCKFILE ${LOCKFILE} is now writable, aborting."
|
[[ -w "${LOCKDIR}" ]] || _exiterr "Directory ${LOCKDIR} for LOCKFILE ${LOCKFILE} is not writable, aborting."
|
||||||
( set -C; date > "${LOCKFILE}" ) 2>/dev/null || _exiterr "Lock file '${LOCKFILE}' present, aborting."
|
( set -C; date > "${LOCKFILE}" ) 2>/dev/null || _exiterr "Lock file '${LOCKFILE}' present, aborting."
|
||||||
remove_lock() { rm -f "${LOCKFILE}"; }
|
remove_lock() { rm -f "${LOCKFILE}"; }
|
||||||
trap 'remove_lock' EXIT
|
trap 'remove_lock' EXIT
|
||||||
|
|||||||
Reference in New Issue
Block a user