mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +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
|
||||
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 [ -f ~/.dotfiles-update ]; then
|
||||
. ~/.dotfiles-update
|
||||
|
|
Loading…
Reference in New Issue
Block a user