mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
remove old lock files so that upgrades don't get stuck
This commit is contained in:
parent
80c4ec608f
commit
39c0a11b62
|
@ -44,6 +44,9 @@ fi
|
||||||
# Cancel upgrade if git is unavailable on the system
|
# Cancel upgrade if git is unavailable on the system
|
||||||
whence git >/dev/null || return 0
|
whence git >/dev/null || return 0
|
||||||
|
|
||||||
|
# Clean up old lock files
|
||||||
|
find $DOTFILES/update.lock -mmin 60 -exec rm {} \; &>/dev/null
|
||||||
|
|
||||||
if mkdir "$DOTFILES/update.lock" 2>/dev/null; then
|
if mkdir "$DOTFILES/update.lock" 2>/dev/null; then
|
||||||
if [ -f ~/.dotfiles-update ]; then
|
if [ -f ~/.dotfiles-update ]; then
|
||||||
. ~/.dotfiles-update
|
. ~/.dotfiles-update
|
||||||
|
|
Loading…
Reference in New Issue
Block a user