mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 10:27:09 +00:00
tools/check_for_upgrade: output message on a lock acquisition failure
This commit is contained in:
parent
45a0b4d1e7
commit
ed0320211a
@ -52,4 +52,9 @@ type -P git &>/dev/null || return 0
|
||||
if command mkdir "$OSH/log/update.lock" 2>/dev/null; then
|
||||
_omb_upgrade_check
|
||||
command rmdir "$OSH"/log/update.lock
|
||||
else
|
||||
printf '%s\n' \
|
||||
'oh-my-bash/check_for_updgrade: Failed to get a lock. Please make sure that no' \
|
||||
'other process is trying to update Oh My Bash and remove' \
|
||||
'"'"$OSH"'/log/update.lock"' >&2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user